javascript“如果页面中没有这个ID”怎么写

2025-05-30 07:05:25
推荐回答(1个)
回答1:

if (document.getElementById("yourid"))==null) {
}