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


你可能感兴趣的:(html,职场,Note,休闲,Aaron)