diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue
index 19e8f17e6256fc9a8bbe5f824995ec63875672ae..527f5817ef7357130e1b03dc738f1110a0a8135d 100644
--- a/pages/component/web-view/web-view.uvue
+++ b/pages/component/web-view/web-view.uvue
@@ -23,6 +23,9 @@
+
+
+
@@ -36,7 +39,7 @@
progress: {
color: '#FF3333'
}
- } as UTSJSONObject
+ }
}
},
methods: {
@@ -52,6 +55,9 @@
stop() {
(this.$refs['web-view'] as IWebViewNode).stop();
},
+ nativeToWeb() {
+ (this.$refs['web-view'] as IWebViewNode).evalJS("alert('hello uni-app x')");
+ },
message(event : WebViewMessageEvent) {
console.log(JSON.stringify(event.detail));
},