In some languages (e.g. C), the boolean values are defined as actual numerical values, so they are just different names for1 and 0 (or -1 and 0). In some other languages (e.g. Java),treatsbooleanas a completely separate data type which has 2 distinct values: true and false. The values 1 and 0 are... Read More
posted @ 2014-01-22 21:10
等风来。。
Views(194)
Comments(0)
Diggs(0)
var m = { i:10, toString:function () { console.log('toString'); return this.i; }, valueOf:function () { console.log('valueOf'); return this.i; } }; console.log(m);// toString console.log(String(m)); // toString console.log(+m); // valueOf console.... Read More
posted @ 2014-01-22 21:02
等风来。。
Views(206)
Comments(0)
Diggs(0)
1.typeof:返回一个表达式的数据类型的字符串返回结果为js的数据类型,包括number,boolean,string,object,undefined,function。var a = 1;console.log(typeof(a)); //=>numbervar b = new Num... Read More
posted @ 2014-01-22 18:16
等风来。。
Views(236)
Comments(0)
Diggs(0)
uchome 主要使用了php的call_user_func()函数,在uc_clinet/client.php中,一般指向uc_api_mysql,而 uc_api_mysql()函数则负责分发到uc_client/control中的on*函数,再由on*函数调用uc_client /model中操作uc数据库。 Read More
posted @ 2014-01-22 00:17
等风来。。
Views(142)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号