private static boolean deleteDir(File dir) { if (dir.isDirectory()) { String[] children = dir.list(); //递归删除目录中的子目录下 ...
分类:
编程语言 时间:
2015-09-21 21:23:45
阅读次数:
146
Hello World! len=6 因为回车也是一个节点childNodes是dom的标准属性,返回节点的所有节点,children还没加入标准家族,但是获得了各浏览器的支持,返回节点的Html节点,可不包括文本节点哦
分类:
其他好文 时间:
2015-09-17 19:45:09
阅读次数:
140
$(function(){$(".userhover").hover(function(){$(this).children(‘ul‘).stop(true,true).show(300);},function(){$(this).children(‘ul‘).stop(true,true).hide(300);})})<divclass="userhover">当前用户<ulclass="userdown"><li><a>用户注销</a&..
分类:
Web程序 时间:
2015-09-16 20:21:56
阅读次数:
164
$('#@(Perfix)OrgType').children("option").each(function () { var temp_value = $(this).val(); if (temp_value == "1") { ...
分类:
Web程序 时间:
2015-09-15 18:10:27
阅读次数:
152
贪心,假如任意给出一个序列,如果两两交换了以后会变大,那么就交换,直到不能交换为止。#includeusing namespace std;const int maxn = 51;string s[maxn];int rk[maxn];bool cmp(int x,int y){ int i ...
分类:
其他好文 时间:
2015-09-15 14:39:17
阅读次数:
160
高阶函数filter源码分析packagecom.dt.scala.forexpressioncaseclassPerson(name:String,isMale:Boolean,children:Person*)objectFor_Expressive{defmain(args:Array[String]){vallauren=Person("Lauren",false)valrocky=Person("Rocky",true)valvivian=Person("Vivian",false,..
分类:
其他好文 时间:
2015-09-12 01:00:47
阅读次数:
114
childNodes property:The childNodes property is a way of getting information about the children of any element in adocument's node tree. It returns an ...
分类:
编程语言 时间:
2015-09-09 20:58:57
阅读次数:
184
React:1,React.render 是 React 的最基本方法,用于将模板转为 HTML 语言,并插入指定的 DOM 节点2,React.createClass 方法就用于生成一个组件类3,this.props 对象的属性与组件的属性一一对应 this.props.children 属性表示...
分类:
其他好文 时间:
2015-09-06 14:18:34
阅读次数:
156
本以为string会耗时,就用数组,结果老是WA,没了耐心找错误,就换成string,秒过!#include #include #include #include #include #include #include #include #include #include typedef long l...
分类:
其他好文 时间:
2015-09-06 12:55:45
阅读次数:
117
$('body > div').css("background","#bbffaa");//和children()方法是等价的,父子关系,和parent()方法是对立的$('body').children('div').css("background","#bbffaa"); 和$('body >....
分类:
Web程序 时间:
2015-09-05 23:47:12
阅读次数:
342