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 插件开发了一个 PopupMenu。
单击 HTML 按钮时,应出现 PopupMenu。
页面刷新时是否可以这样做? 我将如何在 jQuery 中执行此操作?
$(document).ready(function() { $('area').bind("click",function(e){ //popupcode }); });
那不行吗?
$(document).ready(function() { $('area').bind("click",function(e){ //popupcode }); //popupcode });
添加
$('area').click();
在绑定后触发事件:)