提交 2f486a92 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat(getCurrentPage): 补充 UniElement getPage 示例

上级 2760601f
......@@ -198,7 +198,14 @@
checkGetElementById() : boolean {
const page = this.getCurrentPage()
const element = page.getElementById('check-get-element-by-id-btn')
const res = element != null
let res = element != null
// #ifndef APP-ANDROID
if(res){
const elPage = element.getPage()
console.log('elPage', elPage)
res = elPage === page
}
// #endif
console.log('check getElementById', res)
return res
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册