标签:隐藏 on() eve col 弹出层 document btn click logs
mounted里
$("#btnID").click(function(event) { $("#divID").toggle(); $(document).one("click", function() { $("#divID").hide(); }); event.stopPropagation(); }); $("#divID").click(function(event) { event.stopPropagation(); });
标签:隐藏 on() eve col 弹出层 document btn click logs
原文地址:http://www.cnblogs.com/thinkingthigh/p/7607540.html