循环点击(避免重复点击)
for(var i=0;i<muiTableViewCell.length;i++){ (function(index) { muiTableViewCell[i].addEventListener('tap',function(){ if(!myapp_js.check_login()){ ca.prompt('请先登录'); return; } if(index == 1){ ca.newInterface({ url:'msg.html', id:'msg', styles:{ top:'0px', bottom:'', width:'', height:'' }, showType:'zoom-fade-out', showTime:200 }); } }); })(i); }
标签: js
« mysql 修改自增
|
foreach的使用»
发表评论: