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.
Java并发编程的艺术
方腾飞、魏鹏、程晓明 / 机械工业出版社 / 2015-7-1 / 59.00元
并发编程领域的扛鼎之作,作者是阿里和1号店的资深Java技术专家,对并发编程有非常深入的研究,《Java并发编程的艺术》是他们多年一线开发经验的结晶。本书的部分内容在出版早期发表在Java并发编程网和InfoQ等技术社区,得到了非常高的评价。它选取了Java并发编程中最核心的技术进行讲解,从JDK源码、JVM、CPU等多角度全面剖析和讲解了Java并发编程的框架、工具、原理和方法,对Java并发编......一起来看看 《Java并发编程的艺术》 这本书的介绍吧!
