js双感叹号判断
<div id="cnblogs_post_body"> 今天看qunit源代码,发现一段很奇怪的代码,虽然能领会他的意思,但是不明白双感叹号起到的作用。<div class="cnblogs_code">function id( name ) { return !!( typeof document !== "undefined" && document && document.getElementById ) && document.getElementById( name );}
页:
[1]