复选框
<input type="checkbox" onclick="function2()">
function function1(){
$(".ck1").each(function(){
$(this).attr("checked",!$(this).attr("checked"));
});
}
子复选框
<input type="checkbox" value="${b.id}" class="ck1">
批量删除
function function2(){
$(".ck1").each(function(){
if($(this).attr("checked")){
location="delAll?id="+$(this).val();
}
});
}
pagehepler的使用
PageHelper.startPage(pageNum, 3);
List<Brand> blist = userService.getBrandList(mohu);
PageInfo info =new PageInfo(blist);
我对青年的劝告只用三句话就可概括,那就是,认真工作,更认真地工作,工作到底。
——俾斯麦