摘要: JavaScript 函数:function function:声明函数,后面加函数名(){ } test(); function test(){ alert('this is a test'); } //test(); 放在上下都可以 //函数名称严格区分大小写 function TEST(){ 阅读全文
posted @ 2018-12-28 20:22 黄加蓝 阅读(111) 评论(0) 推荐(0) 编辑
摘要: JavaScript: 条件语句: if if else if lese if var声明一个变量,需要下面重新声明这个变量的时候,则不用在写var switch....case语句 default 默认执行条件其他不成立才读 case !=if 它表示值一样不一样,不表示判断,但是不会转为字符串去 阅读全文
posted @ 2018-12-28 15:51 黄加蓝 阅读(128) 评论(0) 推荐(0) 编辑