$(#boxid).onClick = function()
{
var secChk1 = $(#second_chk_1);
var chk = secChk1.$$(input); //拿到整个div里面带input属性的控件存入数组,本身就是数组
var boxid_all = $(#boxid).checked; //筛选判断条件
for( var tmpv in chk)
{
if(boxid_all == true)
{
tmpv.checked = true;
}
else
{
tmpv.checked = false;
}
}
}; 复选框全选操作。
$(#scan_Now).onClick = function(){
$(#regis_70_2).style["display"] = "block";
$(#regis_70_1).style["display"] = "none";
var iParam = 0;
var secChk1 = $(#second_chk_1);
var chk = secChk1.$$(input); //拿到整个div里面带input属性的控件存入数组,本身就是数组
var sum = 0; //筛选判断条件
var j = 0;
for( var tmpv in chk)
{
if(tmpv.checked != false)
{
iParam |= 1 << j;
stdout.println(j);
}
j++;
}
stdout.println(iParam);
view.CallCbc(iParam);
};
位移。数据传后端操作。secchk1这个函数操作是重点能获取整个div控件属性与ID