提交 2817f3f4 编写于 作者: inkwalk's avatar inkwalk

update: $mp -> $scope

上级 797e0b01
......@@ -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})
......
......@@ -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的平台判断
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册