最近项目中需要用jquery判断input里checkbox是否被选中,发现用attr()获取不到复选框改变后的状态,最后查资料发现jQuery 1.6以后新增加了prop()方法,借用官方的一段描述就是: The difference between attributes and properties can be important in specific situations. Before jQuery 1.6, the .attr() method sometimes took pro
前台js代码 function destroyExcelout(){ //返回选中多行 var row = $('#dg').datagrid('getSelections'); //判断是否选中行 if (row.length==0){ $.messager.alert("提示", "请选择要删除的行!", "info"); return; }else{ var temID="&qu