当前位置:Gxlcms > JavaScript > jquery 检测元素是否存在的实例代码

jquery 检测元素是否存在的实例代码

时间:2021-07-01 10:21:17 帮助过:3人阅读

if ($('#myDiv).length) { 
    // your code 
}

 Simple, but not obvious.

人气教程排行