05 2020 档案
摘要:类型转换 快速转 Number var a = '1' console.log(typeof a) console.log(typeof Number(a)) // 普通写法 console.log(typeof +a) // 高端写法 快速转 Boolean var a = 0 console.l
阅读全文
摘要:父组件到子组件通信 通过自定义属性传递 //父组件:parent.vue <template> <div> <child :vals = "msg"></child> </div> </template> <script> import child from "./child"; export de
阅读全文
摘要:项目初始化 vue-element-admin 源码 git clone https://github.com/PanJiaChen/vue-element-admin cd vue-element-admin npm i npm run dev 若npm 报错 Cannot find module
阅读全文