var obj = $("#testdiv")//JQ
//获取innerTextvar innerText = obj[0].innerText || obj[0].textContent;//兼容了火狐
//设置innerTextobj.html(innerText);