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.
如何告诉 jquery 隐藏所有以 开头的 id #ms_?
#ms_
我试过的
$("#ms_" + $("*")).hide(); $("#ms_" + "*").hide(); $("#ms_" + *).hide();
尝试这个
$('[id^="ms_"]').hide();
见http://api.jquery.com/category/selectors/
使用以 selector 开头的属性: