aaron note html

js跳转
window.location.href = ;
js刷新
window.location.reload();


与IE8或更高版本兼容:
< META http-equiv ="X-UA-Compatible" content ="IE=EmulateIE7" />



< bgsound id ="oBGSound" autostart ="true" loop ="true" hidden ="true" />
控制声音播放: 
$('#oBGSound').attr('src', "./chimes.wav");


悬浮div的
style:
position:absolute;font-size:8px;z-index:2;text-align:center;width: 325px;height: 215px;
最核心的是
z-index:2;


兼容各浏览器的flash
< object width ="960" height ="60" >
< param name ="movie" value ="*.swf" > </param>
< param name ="allowFullScreen" value ="true" > </param>
< param name ="wmode" value ="opaque" > </param>
< embed src ="*.swf" type ="application/x-shockwave-flash" wmode ="transparent" allowfullscreen ="true" width ="960" height ="60" > </embed>
</object>


用ajax向另外一个页面发送 上万个js字符串时, 若是采用逗号链接,则很是耗cpu, 若是采用js数组,则基本不占用cpu,并且速度很快

jquery ajax function:
dataType use 'json' is the best way to return multiple-dimention array
use 'xml' is also good but waste network package size
use 'text' for simple return data, do not use implode and explode at the same time for complicated return data

跨域 cookie: http://www.w3.org/P3P/ table td 等的宽度写死, 会使浏览器不执行动态的计算, 能够使页面快速显示出来 当有大量的td须要隐藏, 同时大量的其它td须要显示, 同理, 为了会使浏览器不执行动态的计算, 在td里用span,改为大量span隐藏和显示, 执行速度提升数十倍 gb2312, gbk 彷佛都不如用gb18030
相关文章
相关标签/搜索