Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
变量剩余插槽在javascript中,我想在我的jquery中使用它,如果remainingSlot == 0,则从组合框中删除/隐藏该项目。我真的对此有疑问,我还是 html 新手,请提前帮助,谢谢(抱歉英语不好)
Javascript
if(remainingSlot == 0){ document.getElementById('id_here').style.display = 'none'; }
jQuery
if(remainingSlot == 0){ $('#id_here').hide(); }