摘要: JavaScript定义变量: var num;变量的类型不知道,当给num赋值后,根据值类型来确定类型。 1 var num = 3; //数值类型 2 3 var str = "hello,world"; //字符串类型 4 5 var tf = "true"; //布尔类型 运算符(+,-,* 阅读全文
posted @ 2016-03-08 20:01 郑小辉 阅读(282) 评论(0) 推荐(0) 编辑