01 2015 档案
摘要:在JavaScript中,0、""、null、false、undefined、NaN都为false,其余为true。(看过http://www.jb51.net/article/21339.htm来的) 几乎所有的语言中,&&与||的运算遵循“短路”原理。&&运算如果前面为假,就不再继续运算。...
阅读全文
摘要:jQuery8293-8309行 1 jQuery.each( [ "get", "post" ], function( i, method ) { 2 jQuery[ method ] = function( url, data, callback, type ) { 3 ...
阅读全文