jQuery 判断dom是否存在

166 阅读1分钟
if($('qrcode').length > 0){
	//doSomething
}