每月彙整:五月 2018

jQuery 檢查元素是否存在

if ($("#myDiv").length > 0) { alert(‘Yes’); }else{ alert(‘No’); }

發表於 Jquery | 發表迴響