js的touch事件,一般用于移动端的触屏滑动 代码如下: $(function(){ document.addEventListener("touchmove", _touch, false); }) function _touch(event){alert(1);} event对象 touchs ...
分类:
编程语言 时间:
2016-05-16 19:59:14
阅读次数:
339
createDocumentFragment有什么作用呢? 调用多次document.body.append(),每次都要刷新页面一次。效率也就大打折扣了,而使用document_createDocumentFragment()创建一个文档碎片,把所有的新结点附加在其上,然后把文档碎片的内容一次性添 ...
分类:
其他好文 时间:
2016-05-16 14:31:59
阅读次数:
150
Window对象 我们知道浏览器对象模型(BOM)是javascript的组成之一,它提供了独立于内容与浏览器窗口进行交互的对象。其分层结构如下: window对象是整个BOM的核心其有document(文档对象)、location(地址对象) 和history(历史对象组成) 调用对象属性的语法:... ...
分类:
编程语言 时间:
2016-05-16 12:50:35
阅读次数:
251
The goal of this document is to provide an umbrella blueprint defining how to add support for VPC in Openstack. A VPC is defined as an entity providin ...
分类:
其他好文 时间:
2016-05-16 10:42:10
阅读次数:
211
第一:百度UEditor编辑器的官方下载地址 ueditor 官方地址:http://ueditor.baidu.com/website/index.html 开发文档地址:http://ueditor.baidu.com/website/document.html 下载地址:http://uedi ...
分类:
其他好文 时间:
2016-05-16 01:58:01
阅读次数:
582
l理解新的选择器 l获取class列表属性 lJson的新方法 ldata自定义数据 l延迟加载JS l历史管理 l拖放事件 新的选择器 ?querySelector 无标题文档 divdiv2 ?querySelectorAll //document.getElementById();//docu... ...
分类:
Web程序 时间:
2016-05-16 01:54:08
阅读次数:
253
1. $(document).ready(function(e) { $("#content7 > div:not(:first)").hide(); $("#hdm a").click(function(){ $(this).addClass("current").parent("li").sib ...
分类:
其他好文 时间:
2016-05-15 21:31:08
阅读次数:
169
HTML Dom针对HTML文档的标准模型 Document object Model(文档对象模型)HTML Dom 是关于如何获取,修改,添加或删除HTML元素的标准。 document :对象,一切皆为对象 。从脚本中对html进行访问。方法: 1.document.getElementByI ...
分类:
其他好文 时间:
2016-05-15 21:23:59
阅读次数:
206
Bom:浏览器对象模型(Browser objiect Model)尚无正式标准。有三种方法能够确定浏览器窗口的尺寸(浏览器的视口,不包括工具栏和滚动条)。 1.window.innerHeight 浏览器窗口的内部高度 window.innerWidth 浏览器窗口的内部宽度 2.document ...
分类:
其他好文 时间:
2016-05-15 21:13:48
阅读次数:
112
varCookieUtil={
get:function(name){
varcookieName=encodeURIComponent(name)+"=";
varcookieStart=document.cookie.indexOf(cookieName);
varcookieValue=null;
if(cookieStart>-1){
varcookieEnd=document.cookie.indexOf(";",cookieStart);
if(cookieE..
分类:
Web程序 时间:
2016-05-15 19:57:54
阅读次数:
125