//jquery 通过得到对象的长度判断对象是否存在
function testJquery() {
if ($(".tel").length > 0) {
alert("存在");
}
else {
alert("不存在");
}
}
判断jquery 对象是否存在
最新推荐文章于 2024-06-09 10:13:00 发布