diff --git a/docs/component/web-view.md b/docs/component/web-view.md index e741ac2061d426bb1d020c7cc5150902bb0009b8..1e32d8139902c6fc18e1083e6f1b5fdcefd7a801 100644 --- a/docs/component/web-view.md +++ b/docs/component/web-view.md @@ -342,7 +342,7 @@ export default { ```js onReady() { // #ifdef APP-PLUS - var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象 + var currentWebview = this.$scope.page.$getAppWebview() //获取当前页面的webview对象 setTimeout(function() { wv = currentWebview.children()[0] wv.setStyle({scalable:true}) diff --git a/docs/snippet.md b/docs/snippet.md index 2b68ce1e4bb3785132b2d26207a5af8f67f4995c..811777f7caafd45f234909d5d3c1f2c3b6a79556 100644 --- a/docs/snippet.md +++ b/docs/snippet.md @@ -81,7 +81,7 @@ uni.showToast({ - rt:return true - clog:输出:"console.log()" - clogvar:增强的日志输出,可同时把变量的名字打印出来 -- varcw:输出:"var currentWebview = this.$mp.page.$getAppWebview()" +- varcw:输出:"var currentWebview = this.$scope.page.$getAppWebview()" - ifios:iOS的平台判断 - ifAndroid:Android的平台判断