日期:2014-05-17 浏览次数:21332 次
function sss() {
sel = document.getElementsById("True");
for (i = 0; i <= sel.length; i++) {
if (sel[i].id == "True") {
sel[i].innerText = "正常";
}
else {
sel[i].innerText = "冻结";
}
}
}
$("p").each(function () {
if ($(this).hasClass("true")) {
$(this).text("正常");
}
else {
$(this).text("冻结");
}
});