js中基础数据类型

变量声明html

undefined //未定义只声明   var age;htm

alert(name);
function fc(a1,a2,a3) {
//alert(a1);
//alert(a2);
//alert(a3);


}
//fc(1,2)
注:第三个参数未传值,就会是 undefined

null          //定义一个空值   var age = null;blog

数字字符串

var age = 1.234;
var v = typeof age;
alert(v )
注:结果是number类型

   var num = "123"
   typeof num
   "string"
   var v = parseInt(num)  //将字符串转成 INT 类型
   typeof v
   "number"string



字符串io

列表function

字典变量

 

 http://www.cnblogs.com/wupeiqi/articles/5602773.htmlco

相关文章
相关标签/搜索