摘要: 转自:http://www.0fish.com/js/416原生js写法案例:obj = document.getElementById("someID"); if (obj){ obj.innerText("hi"); } jquery写法:if ( $("#someID").length > 0... 阅读全文
posted @ 2014-07-06 23:32 horizon~~~ 阅读(660) 评论(0) 推荐(0) 编辑