var o={ oText:function(obj){ var text; switch(typeof obj.innerText){ case 'string': text=obj.innerText; break; case 'undefined': text=obj.textContent; break; default: break; } return text; }, sText:function(obj,s){ switch(typeof obj.innerText){ case 'string': obj.innerText=s; break; case 'undefined': obj.textContent=s; break; } }, oHtml:function(obj){ return obj.innerHTML; }, sHtml:function(obj,s){ obj.innerHTML=s; } };

转自:http://hi.baidu.com/ifos/blog/item/dd619f1cba2dff8a87d6b687.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2021-11-16
  • 2021-06-08
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-10-15
相关资源
相似解决方案