不看文档 onLoad调用? 使用 uni.createSelectorQuery() 需要在生命周期 mounted 后进行调用。
2021-09-18 16:42
https://uniapp.dcloud.io/platform?id=preprocessor
2021-09-18 16:29
你确定你写对了?
2021-09-18 16:27
const query = uni.createSelectorQuery().in(this); query.select('#id').boundingClientRect(data => { console.log("得到布局位置信息...
把this.xx改成getApp().xx试试
2020-10-16 09:02
import Vue from 'vue' let vm = new Vue()
2020-09-17 08:51
顶,同样的问题
2020-09-09 16:41
this.xx改成getApp().xx就行了
2020-09-04 15:55
App.vue不行吗
2020-08-22 16:36
媒体查询 再写一套样式
2020-08-17 18:12
uni.navigateTo({ url: '/pages/xxx/xxx?id='+id })
2020-08-17 17:34
是不是最近把ios升级到13以上了
2020-08-13 11:20