已知wxml页面代码如下: {{x - y}} + {{z}} + x js页面代码如下:Page({data: {x : 5, y : 4, z : 3}})最后显示结果是?
A. 9
B. 1+3+5
C. 13x
D. 1+3+x
查看答案
已知js文件中有:Page({data: {teacher: [{name: '张老师',id: '111'},{name: '李老师',id: '222'},{name: '王老师',id: '333'}]}})想在wxml页面上显示张老师的id号,{{x}}代码中x的位置应该如何写?
A. teacher[1].id
B. teacher.id[1]
C. teacher[0].id
D. teacher.id[0]
已知wxml页面有: A B C 在js页面有:Page({data:{x: 9}})
A
B
C
D. ABC
微信小程序特有的尺寸单位是?
A. px
B. rpx
C. pt
D. dp
已知:var personInfo = [{username: 'zhangsan', password : '123', city : 'Wuhu'},{username: 'lisi', password: '456', city: 'Hefei'},{username: 'wangwu', password: '789', city: 'Xuancheng'}]以下哪句可以在Console控制台输出wangwu所在的城市?
A. console.log(personInfo.wangwu.city)
B. console.log(personInfo['wangwu'].city)
C. console.log(personInfo[3].city)
D. console.log(personInfo[2].city)