if($("#xxx").length > 0){
console.log("jquery存在");
}else{
console.log("jquery不存在");
}
判断jquery对象是否存在
最新推荐文章于 2022-12-24 14:22:28 发布
if($("#xxx").length > 0){
console.log("jquery存在");
}else{
console.log("jquery不存在");
}