var divbox = $(".checkbox.active");
$.each(divbox,function (index,don){
analysistypes.push(don.innerText);
});
//divbox是获取到的div,index是下标,don是每个div
//jQuery获取div值得方法:text()获取文本,html()获取所有内容(包括HTML元素)。
//循环遍历后需要用js的方法获取div的内容
var divbox = $(".checkbox.active");
$.each(divbox,function (index,don){
analysistypes.push(don.innerText);
});
//divbox是获取到的div,index是下标,don是每个div
//jQuery获取div值得方法:text()获取文本,html()获取所有内容(包括HTML元素)。
//循环遍历后需要用js的方法获取div的内容