阅读背景:

if(document.getElementById('something')!= null)是否与if(document.getElementById('something'))相同?

来源:互联网 

When I want to check if an element exists in a page. Are these two checks the same? Is there a better more compact way to check the existence?When I want to check if an element exists in a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: