一:函数格式和用法: jQuery中所用到的:匿名函数的执行. (function(){ //这里忽略jQuery所有实现 })(); //the first function function first(){ // code to process } //the second function function second(x,y){ return x+y; } 但是,无论你怎么去定义你的函数,JS解释器都会把它翻译成一个Function对象.用Function对象定义函数 var abc…
js函数集·字符串(String) 1.声明 var myString = new String("Every good boy does fine."); var myString = "Every good boy does fine."; 2.字符串连接 var myString = "Every " + "good boy " + "does fine."; var myString = "…