摘要:
引入 安装依赖 npm install echarts 全局挂载 // main.js import * as Echarts from "echarts" Vue.prototype.echarts = Echarts; Vue.use(Echarts); // 注册插件 配置 公共部分 调整横纵 阅读全文
摘要:
命令 1. 启动:start nginx 2. 重启: nginx.exe -s reload 3. 关闭:nginx.exe -s stop 4. 杀进程(先查后杀) 方法一: - 先查:ps -ef|grep nginx - 后杀:kill -HUP 端口号 - 图片说明:![例子](https 阅读全文
摘要:
全称:Unified Modeling Language(统一建模语言) 阅读全文
摘要:
$eventBus监听无法执行 数组中多层对象的嵌套遍历会导致视图无法更新,vue中的model和view不同步 方法一: this.$forceUpdate() : 方便简单,但未必有效 方法二: 通过v-show 控制显隐来达到刷新的作用:方法简单,但会多一个变量 方法三(推荐): this.$ 阅读全文
摘要:
初始化 有三种方式: 1. new Object() 补充: 2. Object.create(proto[, propertiesObject]): 使用现有的对象来作为新创建对象的原型 > 参数说明: proto : 新创建对象的原型对象。 值为:null(有优缺点,看官网) 或 除基本类型包装 阅读全文
摘要:
父级属性 flex-direction: row(默认) | row-reverse | column | column-reverse : 主轴方向 justify-content: flex-start(默认) | flex-end | center | space-around | space 阅读全文
摘要:
新增的常用标签: 总结: 多媒体:video(视频) audio(音频) 表单控件:calendar date time email url search image 表单新增的标签:datalist (自动完成)、keygen(加密)、output(不同类型的输出) 语义化标签: - header 阅读全文
摘要:
参考:掘金 例子: KeepAlice.vue(父组件) <template> <section> <keep-alive> <component keyName="name1" :is="componentName"></component> </keep-alive> <component ke 阅读全文