摘要:
1. 使用【360安全卫士】->【安全防护中心】->【信任与阻止】->【阻止的网站】不足:http://www.baidu.com/具有反屏蔽的功能,使用这种方法无法进行屏蔽 ;2. 修改hosts文件,具体怎么修改自行谷歌不足:使用FQ代理仍然可以访问被屏蔽的网站3. 使用广告屏蔽插件,例如【ad... 阅读全文
摘要:
Professional JavaScript for Web Developers P552Basic Usage The element requires at least its width and height attributes to be set in order to indi... 阅读全文
摘要:
Ajax操作的四个步骤:创建Ajax对象连接服务器发送请求接收返回信息 1 2 3 4 5 6 39 40 41 42 43 View Code 阅读全文
摘要:
1 2 3 4 5 6 13 14 15 16 17 阅读全文
摘要:
运行效果图:[点击这里] 1 2 3 4 5 6 22 66 67 68 69 70 View Code 阅读全文
摘要:
addEventListener() and removeEventListener();These methods exist on all DOM nodes and accept three arguments: the event name to handle, the event hand... 阅读全文
摘要:
http://bbs.zhinengshe.com/thread-1200-1-1.html要求:实现div块的拖拽原理:拖拽过程中鼠标点和div块的相对位置保持不变。需要理解三点:1. 为什么要把onmousemove,onmouseup加在document上面 ?2. onmouseup要怎么使... 阅读全文
摘要:
MDN :The Document.documentElement read-only property returns the Element that is the root element of the document (for example, the element for HTML ... 阅读全文
摘要:
思路:使用keyCode,阻止浏览器默认行为.运行效果:[点击这里] 1 2 3 4 5 6 21 22 23 24 25 View Code 阅读全文
摘要:
clientX和clientY为可视区鼠标的位置。1. 随鼠标移动的div块[runjs]当document有多个页面时,会出现问题。[runjs]2. 解决方案:scrollTop, scrollLeft需要注意scrollTop/scrollLeft的兼容性获取;scrollTop = docu... 阅读全文