摘要:
let const let 定义变量,局部作用域,没有变量提升,只能先定义后使用,不能重复定义 const 定义常量,不能修改,如果定义的是一个对象,让这个对象不能修改,需要使用 Object.freeze(obj); var 定义的全局变量是属于window的,let const 不同 解构赋值: 阅读全文
posted @ 2019-08-20 17:34
半夏微澜ぺ
阅读(235)
评论(0)
推荐(0)
摘要:
使用webpack安装vue,import之后,运营项目报错,如下: [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-co 阅读全文
posted @ 2019-08-20 14:14
半夏微澜ぺ
阅读(2458)
评论(0)
推荐(0)
摘要:
需要安装的插件: cnpm i -D babel-core babel-loader babel-plugin-syntax-jsx babel-plugin-transform-runtime babel-plugin-transform-vue-jsx babel-preset-env babe 阅读全文
posted @ 2019-08-20 11:39
半夏微澜ぺ
阅读(1362)
评论(0)
推荐(0)
浙公网安备 33010602011771号