上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: // head['Cache-Control']='max-age=31536000'; // head['Expires']=new Date((new Date().getTime()+99999999)).toGMTString(); ... 阅读全文
posted @ 2015-04-10 17:00 高捍得 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 当服务端返回的 音频文件标示 no-cache 的时候,会引起currentTime 失败。改掉server 返回头信息。解除禁止缓存,一切ok。 阅读全文
posted @ 2015-02-04 18:17 高捍得 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: ~1 //-2 由于复数在计算机内部标示用补码~ 1 过程: 1. 首先 1的源码是 0000 0001 2. 按位取反 1111 1110 3. 一看是负数。就看 这个负数的源码是多少: 1111 1101 --> 0000 0010--->2(十进制); 4. 所以 1111 111... 阅读全文
posted @ 2015-01-28 12:25 高捍得 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1. {}+""相当于+"", 因为js解析器把{} 当做 block表达式。 一元运算符+ 的规则是(http://es5.github.io/index.html#x11.4.6):Letexprbe the result of evaluating UnaryExpression.Return... 阅读全文
posted @ 2015-01-26 17:43 高捍得 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 例1:var a={}; alert(a); //[object Object];例2:var a={ toString:function(){ return 1; } }alert(a); // 1a+1; //2例3:var a={toString:function(){retu... 阅读全文
posted @ 2015-01-22 17:12 高捍得 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 代码:(!(~+[])+{})[--[~+""][+[]]*[~+[]] + ~~!+[]]+({}+[])[[~!+[]]*~+[]]输出sb。分段解析: 首先解析s: (!(~+[])+{}) --> 输出 "false[object Object]" 由于 ! 优先级 高于 +, ... 阅读全文
posted @ 2015-01-21 17:08 高捍得 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 1.生成 dom & cssomhttps://developers.google.com/web/fundamentals/performance/critical-rendering-path/constructing-the-object-model2.render tree construc... 阅读全文
posted @ 2014-10-27 15:40 高捍得 阅读(223) 评论(0) 推荐(0) 编辑
摘要: $(html) ->$(array)$(html,{}||$(...))$(#id)$(expr,$(...))$(expr,context)$(dom)$(function(){}) 阅读全文
posted @ 2014-10-16 12:50 高捍得 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 当执行eval时,会执行如下过程 eval(x):1.如果 x的类型不是string,那么会return x;2.把x转换成 ecmascript 代码。如果转换失败,责抛出SyntaxError异常。3.为转换后的代码建立一个新的执行上下文环境,并存入evalCtx;4.执行转换后的代码,并将结果... 阅读全文
posted @ 2014-09-19 12:40 高捍得 阅读(458) 评论(0) 推荐(0) 编辑
摘要: page.evaluate( function() { // find element to send click to var element = document.querySelector( 'span.control.critical.closer' ); // creat... 阅读全文
posted @ 2014-07-25 16:44 高捍得 阅读(298) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页