|
新建个html页面,单独测试这段代码看看。是不是调用到其他地方了
var mnPopups = api.require('MNPopups');
mnPopups.open({
rect: {
w: 100,
h: 180
},
position: {
x: api.winWidth - 10,
y: 0
},
styles: {
},
datas: [{
title: '添加朋友'
}, {
title: '扫一扫'
}, {
title: '面对面快传'
}],
animation: true
}, function (ret) {
if (ret) {
//alert(JSON.stringify(ret));
}
}); |
|