Simple Signal Slot
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/sigslot
软件介绍
This plugin is utility for convinience of communication between iframes in HTML page,
it is mimicking from Qt's signal/slot concept.
you can do with jquery.sigslot.js:
- send signal to N-depth iframe page
- async. or sync. communication
- exclude or include particular iframe
- allow multiple slot or just one
Usage
([ .. ] for opton , '|' for seperator)
- 1. slot
$.slot.add( 'sig/slot id', function [,repeatable] )- repeatable = true | false
- false: allow only one slot function for signal-id (default)
- true: allow every slot function for signal-id, even it is identical. so, slot function is called as many as times you registered
- ex) $.slot.add( 'test', [a,b,c,d], true );
$.slot.remove( 'sig/slot id'[, function]);- * if function is omitted, remove all slot functions for signal-id
$.slot.countOf( 'sig/slot id');- * return number of registered slot function for signal-id
- 2. signal
$.signal( 'sig/slot id', args, [, options ] );- * args: arguments passing to slot function. wrap by [] if you want to pass more than one.
- * options : simple object, for ...
-
direction = $.signal.SELF | $.signal.UPLINK | $.signal.FOLLOWLINK | $.signal.OTHER | $.signal.BROADCAST - purpose: direct where to pass signal. default for all iframes include window.self
- - $.signal.SELF (send signal only to current page that the signal occur)
- - $.signal.UPLINK (send signal only to parents iframes EXCLUDE current page that the signal occur)
- - $.signal.FOLLOWLINK (send signal only to child iframes EXCLUDE current page that the signal occur)
- - $.signal.OTHER (send signal to all iframe pages EXCLUDE current page that the signal occur)
- - $.signal.BROADCAST (send signal to all iframes INCLUDE current page that the signal occur)
-
sync = true | false - purpose: select async or sync call. boolean type. default is sync.
- * $.signal will NOT cause error, if there's no slot function for signal-id. It will do nothing.
你凭什么做好互联网
曹政 / 中国友谊出版公司 / 2016-12 / 42.00元
为什么有人可以预见商机、超越景气,在不确定环境下表现更出色? 在规则之外,做好互联网,还有哪些关键秘诀? 当环境不给机会,你靠什么翻身? 本书为“互联网百晓生”曹政20多年互联网经验的总结,以严谨的逻辑思维分析个人与企业在互联网发展中的一些错误思想及做法,并给出正确解法。 从技术到商业如何实现,每个发展阶段需要匹配哪些能力、分解哪些目标、落实哪些策略都一一点出,并在......一起来看看 《你凭什么做好互联网》 这本书的介绍吧!
