摘要:        
推荐文章 http://www.cnblogs.com/rubylouvre/archive/2010/03/09/1681222.html正则表达式,其实在以前学Linux的时候有学过一点,只是都忘记了,正则表达式应该都是一样的语法。Creating a Regular Expression两种方法创建正则表达式:正则字面量var reg = /a+b/;RegExp对象var reg = new RegExp("a+b");Special Characters\ 转意,即通常在"\"后面的字符不按原来意义解释,如/b/匹配字符"b"    阅读全文
posted @ 2011-04-23 09:26
e.e.p
阅读(289)
评论(0)
推荐(0)
        
            
        
        
摘要:        
typeof:返回一个变量的类型,一般返回number,boolean,string,function,object,undefined。instanceof : 判断某个变量是否是某个对象的实例。function test(a,b){ return a+b;}var a = new test();console.log( a instanceof test);console.log(typeof test=="function");console.log(typeof a=="object");console.log(typeof a=="f    阅读全文
posted @ 2011-04-23 09:07
e.e.p
阅读(299)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号