function co(GenFunc) { return function(cb) { var gen = GenFunc() next() function next() { if (gen.next) { var ret = gen.next() if (ret.done) { // 如果结束就执行cb cb && cb() } else { // 继...
otherWindow.postMessage(message, targetOrigin, [transfer]); 对于第二个参数,mdn的解释是: Specifies what the origin of otherWindow must be for the event to bedispatched, either as the literal strin...