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.
我希望可见性:可见性保持不变,目前它会暂时闪烁然后消失。
$(document).ready(function() { $('#subscribe').click(function(e) { $('#joinThanks').css('visibility', 'visible'); }) e.stopPropagation(); });
有任何想法吗?
谢谢大家。
e.stopPropagation()调用应该进入点击处理程序:
e.stopPropagation()
$(document).ready(function() { $('#subscribe').click(function(e) { e.stopPropagation(); $('#joinThanks').css('visibility', 'visible'); }) });
此生成的语法错误可能导致您看到的奇怪行为。