随笔分类 - XML/DHTML/HTML
摘要:RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. It is a generic...
阅读全文
摘要:第1章,规则1——减少 HTTP 请求:介绍了为什么额外的 HTTP 请求会对性能产生巨大的影响,并介绍了减少HTTP请求的方法,包括图片映射、CSS 子图形、使用data:模式的URL内联图片,以及合并脚本和样式表。
阅读全文
摘要:提高性能的14个技巧
1、少做 HTTP 请求 ;
2、使用 CDN ;
3、增加过期的头 ;
4、Gzip 组件 ;
5、将样式表放在头部 ;
6、将脚本放于底部 ;
7、避免使用CSS表达式 ;
8、将JS and CSS 作为外部文件 ;
9、减少DNS查询 ;
10、精简 JS 脚本 ;
11、避免重定向 ;
12、移除重复脚本 ;
13、配置 ETags ;
14、使 AJAX 可缓存 。
阅读全文
摘要://事件源对象
event.srcElement.tagName event.srcElement.type
//捕获释放
event.srcElement.setCapture(); event.srcElement.releaseCapture();
//事件按键
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
//事件返回值
event.returnValue
//鼠标位置
event.x
event.y
//窗体活动元素
document.activeElement
//绑定事件
document.captureEvents(Event.KEYDOWN);
//访问窗体元素
document.all("txt").focus(); document.all("txt").select();
//窗体
阅读全文

浙公网安备 33010602011771号