请问一下 这段代码为什么在手机上生效 电脑上没有任何提示?
<script type="text/javascript" charset="utf-8">
isselect=true
mui('#refreshContainer').on('tap', 'li', function(event) {
if(isselect == true) {
var data='';
var cols = this.getAttribute('cols').split(',');
for (var col in cols){
if(data!=''){
data+=',';
}
data+="'" + cols[col] + "':'" + this.getAttribute(cols[col]) + "'";
}
if(data!=''){
data+=',';
}
data+="'cols':'" + this.getAttribute('cols')+',数量' + "'";//加上数量字段,其他单子明细中有数量
data='{' + data + '}';
parent.window.after_cp_table(eval('(' + data + ')')); //父页面执行 after_cp_table函数,并且传回data
} else { //编辑页面
var _identify = this.getAttribute('_identify') //获取当前选择的id
if(_identify != null) {
mui.openWindow({ //******************注意修改页面名称***********************************
url: 'cp_info.html?_identify=' + _identify, //页面名称
id: 'cp_info.html' //页面名称
});
}
}
alert("我被点了");
});
</script>