Jquery 订阅/发布插件 JQUERY SUBSCRIBE/PUBLISH PLUGIN

元嘉木
2023-12-01

插件主页:http://plugins.jquery.com/project/jQuerySubscribe

提供下面的方法

$elem.subscribe(topic, handler, data)
$elem.unsubscribe(topic)
$elem.publish(topic, data, originalEvent)
$elem.publishOnEvent(event, topic, data)
$elem.createTopic(topic)
$elem.destroyTopic(topic)

$.subscribe(topic, handler, data)
$.publish(topic, data, originalEvent)
$.createTopic(topic)
$.destroyTopic(topic)
$.subscribeHandler(name, handler)  

 类似资料: