判断对象是否为空 js与Jquery区别fkoryp (36)in #cn • 6 years ago js if(document.getElementById('id')==null) 2 Jqurey if($('#id').length==0) 注意:不可用$('#id')==null判断,因为$('#id')总是返回JQuery对象 #js #jquery
受教
Congratulations @fkoryp! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word
STOP