时间:2019-05-07 来源:小程序工厂
林***:
请给详细的代码示例
杨***:
<------------------------------------->
wx.getSystemInfo({
success: function (res) {
var height = res.screenHeight - (res.screenHeight - res.windowHeight);
if (res.platform == 'ios') {
height = height - 49;
} else if (res.platform == 'android') {
height = height + 46;
}
var tranX = (res.windowWidth - 0) * 0.82;
var tranY = height * 0.66;
that.setData({
x: tranX,
y: tranY,
height: height,
})
}
})
wx.showLoading 内文字乱码,微信小程序教程
S***:
请问楼主 我设置了 x和y 却无法水平划动
windowWidth是我用 wx.getSystemInfoSync();获取的宽度
杨***:
认真看文档好吗,
out-of-boundsBooleanfalse超过可移动区域后,movable-view是否还可以移动
钢***:
请问楼主这个问题有解决方案了吗?
wx.request本地测试环境,URL始终404错误