parentNode属性element.firstChild 返回当前对像的父结点,即上级容器,var element = document.getElementsByTagName('ul');var oElement = element[0].parentNode;for(var i = 0;i...
分类:
其他好文 时间:
2014-12-12 11:26:16
阅读次数:
180
标题:Single Number II正确率:34%难度:中等Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm sh...
分类:
其他好文 时间:
2014-12-12 11:14:28
阅读次数:
127
??
JavaScript:DOM编程
1.节点及其类型
1)元素节点
2)属性节点:元素的属性,通常情况下, 操作属性节点直接通过 "元素节点.属性名" 的方式来读写属性值
3)文本节点:是元素的子节点,其内容为文本
例donot forget me
element node : p
attribute node : title="name"
text node ...
分类:
编程语言 时间:
2014-12-11 17:21:21
阅读次数:
221
有时候没有设置css但是会自动出现css,使我们调整css不好调
可以在你要强制改变的css后加 ! important即可强制更改...
分类:
Web程序 时间:
2014-12-11 12:24:47
阅读次数:
271
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-12-11 01:35:21
阅读次数:
173
标题:Single Number通过率:46.0%难度: 中等Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should ....
分类:
其他好文 时间:
2014-12-10 17:41:54
阅读次数:
194
一:基本选择器 1. #id:根据给定的id选择元素,返回单个元素,例如$(“#test”),选取id为test的元素 2. .class:根据给定的类名匹配元素,返回集合元素,$(“.test”),选取所有class为test的元素 3. element:更加给定的元素名匹配元素,返回集合元素,$...
分类:
Web程序 时间:
2014-12-10 17:40:25
阅读次数:
277
用JQ有一段时间了,今天对JQ的一些知识进行一些总结。首先在JQ中分为几大模块:选择器,属性/CSS,操作,遍历,事件,效果,Ajax,还有核心。一、选择器1、基本选择器.class用法$(“.class”)element用法$(“element”)#id用法$(“#id”)Selector1,selectorN用法$(“Selector1,s..
分类:
其他好文 时间:
2014-12-10 14:29:59
阅读次数:
203
Clough-Tocher The Clough-Tocher interpolation technique is often referred to in the literature as a finite element method because it has origins in th...
分类:
其他好文 时间:
2014-12-10 14:04:22
阅读次数:
124
转载自http://blog.csdn.net/legendj/article/details/9950963 今天在写spring aop示例的时候,在spring.xml文件中添加spring aop的schema后出现红叉,spring配置文件如下: ...
分类:
编程语言 时间:
2014-12-10 10:32:44
阅读次数:
200