语句if语句会自动调用Boolean()转换函数将表达式的结果转换为一个布尔值for-in 循环输出的属性名的顺序是不可预测的,返回的先后次序可能因浏览器而异,如果要迭代的对象的变量值为null或undefined, for-in语句会抛出错误,ECMAScript5更正了这一行为;对这种情况不再抛...
分类:
编程语言 时间:
2015-02-08 19:18:22
阅读次数:
307
/*页面右侧栏动作*/ $(".side ul li").hover(function(){ var selected = $(this).attr("id"); if(selected != null && selected == "tel...
分类:
Web程序 时间:
2015-02-08 18:07:50
阅读次数:
255
frameworks/base/core/java/android/text/TextUtils.java public static boolean isEmpty(CharSequence str) { if (str == null || str.length() == 0...
分类:
其他好文 时间:
2015-02-08 18:06:35
阅读次数:
302
若存在特殊字符用此方法,效率高,若不存在就用replacepublic static String repStr(String str) { if(str == null) { return null; } char[] array = str.toCharArray(); fo...
分类:
其他好文 时间:
2015-02-08 14:02:32
阅读次数:
134
mysql函数大全一、字符串函数CONCAT(s1,s2...,sn)返回来自于参数连结的字符串。如果任何参数是NULL,返回NULL。可以有超过2个的参数。一个数字参数被变换为等价的字符串形式。 CONCAT_WS(sep,s1,s2...,sn)将s1,s2...,sn连接成字符串,并用sep字...
分类:
数据库 时间:
2015-02-08 11:28:05
阅读次数:
250
wchar_t *ANSITOUnicode(const char* str){ int textlen = 0; wchar_t *result = NULL; textlen = MultiByteToWideChar(CP_ACP,0,str,-1,NULL,0); result = (wch...
分类:
其他好文 时间:
2015-02-08 00:18:11
阅读次数:
240
Parser parser = Parser.createParser(content,"utf-8") ;
HtmlPage nowpage = new HtmlPage(parser);
try
{
parser.visitAllNodesWith(nowpage);
}
catch (ParserException e1) {
e1 = null;
}
NodeL...
分类:
Web程序 时间:
2015-02-07 18:58:38
阅读次数:
215
function getType(obj){ return (obj === null && 'Null') || (obj === undefined && 'Undefined') || Object.prototype.toString.call(obj).slice(8,-1);}ge...
分类:
Web程序 时间:
2015-02-07 17:12:37
阅读次数:
156
基于哈希表的 Map 接口的实现。此实现提供所有可选的映射操作,并允许使用 null 值和 null 键。(除了非同步和允许使用 null 之外,HashMap 类与 Hashtable 大致相同。)此类不保证映射的顺序,特别是它不保证该顺序恒久不变。 此实现假定哈希函数将元素适当地分布在各桶之.....
分类:
其他好文 时间:
2015-02-07 17:07:09
阅读次数:
116
http://www.lydsy.com/JudgeOnline/problem.php?id=2157题解:裸lct不解释..#include using namespace std;struct node *null;struct node { node *c[2], *f; bool flag...
分类:
其他好文 时间:
2015-02-07 17:05:49
阅读次数:
123