循环点击(避免重复点击)

2016-5-26 admin JS

   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

评论(0) 浏览(3101)

Powered by emlog 吉ICP备15003877号