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.
嘿,所以我有这个代码:
var channel = pusher.subscribe('test_channel'); channel.bind('my_event', function(data) { alert(data); $("#element").html(data); });
但是 jQuery html 事件不起作用。警报有效,但为什么 jQuery 不起作用?
在以下情况下,您的代码将起作用: