摘要: 1.声明变量,你只会var吗?那你真的是JS小鲜肉 如果要声明3个变量,你要var 三下吗? 不用: let [a,b,c] = ['name',18,'ddd'] console.log(a,b,c)//输出name,18,ddd let保存的只是指向内存地址的指针,const是内存 2.cons 阅读全文
posted @ 2018-12-10 15:37 Blues.huang 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 一:调用栈是个什么鬼东西,它具有栈的属性 后进先出 先看一段简单的JS代码: const second = function(){ console.log('hello there'); } const first = function() { console.log('hi,first'); se 阅读全文
posted @ 2018-12-10 12:10 Blues.huang 阅读(2261) 评论(0) 推荐(0) 编辑