原文:http://dean.edwards.name/weblog/2009/03/callbacks-vs-events/先看如下代码:1
document.addEventListener("DOMContentLoaded", function() {2
console.log("Ini.....
分类:
其他好文 时间:
2014-05-10 06:26:41
阅读次数:
273
1.IE状态栏无法结束的问题 1 function clearStatusBar(){ 2
this.bd = document.body; 3 this.tmp = document.creatElement("div"); 4 this.tmp =
style.di...
分类:
Web程序 时间:
2014-05-10 02:33:03
阅读次数:
318
本文原地址:http://www.cnblogs.com/xyzhanjiang/p/3653128.html在编写CSS代码的时候,我们会出现多个样式规则作用于同一个元素的情况,例如
Here backgroundheader nav { background-color: red;}#nav.....
分类:
Web程序 时间:
2014-05-10 02:31:35
阅读次数:
282
解析:从事先规定好的格式中提取数据前提:提前约定好格式。XML解析DOM :Document
Object Model解析 原理: 一次性读入整个XML 以栈的方式解析每一个标签,开标签入栈 关标签出栈 当栈中没有任何元素的时候解析结束 优点:
一次解析出全部数据 而且有明显的层级关系缺点:当XML...
分类:
移动开发 时间:
2014-05-10 00:48:31
阅读次数:
358
我的购物车苹果 10元香蕉 20元西瓜 30元栗子 40元哈密瓜
50元总价格是:0元全选取消是否全选 全选-反选-取消 function select(obj){ var
lids=document.getElementsByName("lid"); if(obj.innerHTM...
分类:
其他好文 时间:
2014-05-10 00:24:17
阅读次数:
391
Array.prototype.slice.call(document.links,0).forEach(function(link){link.onmousedown
= null})插件总失效 用这个对付下
分类:
其他好文 时间:
2014-05-10 00:15:19
阅读次数:
250
网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth
(包括边线的宽)网页可见区域高:document.body.offsetHeight (包括边线的...
分类:
Web程序 时间:
2014-05-09 23:28:41
阅读次数:
493
Linux 内核Makefile文件 --译自Linux3.9.5 Kernel
Makefiles(内核目录documention/kbuild/makefiles.txt) This document describes the
Linux kernel Makefiles 本文当介绍了Linu...
分类:
系统相关 时间:
2014-05-09 23:08:47
阅读次数:
631
原生js方式:var obj =
document.getElementByIdx_x(”testSelect”); //定位idvar index = obj.selectedIndex;
// 选中索引var text = obj.options[index].text; // 选中文本var ...
分类:
Web程序 时间:
2014-05-09 19:48:36
阅读次数:
384
1.document.write(""); 输出语句 2.JS中的注释为//
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen...
分类:
Web程序 时间:
2014-05-09 19:40:08
阅读次数:
470