2018-01-31 13:32
auth : function(id) {
var obj = document.getElementsByName('deleteId');
var ids = "";
for (var i = 0; i < obj.length; i++) {
if (obj[i].checked) {
ids += obj[i].value + ","
};
}
if (ids != "") {
ids=ids.substring(0,ids.length-1);
}
var url = 'admin/article/auth/'+ids;
if(ids==""){
Confirm("至少选择一则文章新闻!", function () {
window.close();
});
}else{
var title = '批量移动';
Iframe(url, 400, 550, title);
}
},
给你的checked定一个deleteId的name,代码给你了