摘要:
1. assetsPublicPath: '/' 修改为 assetsPublicPath: './' 2. untils.js里面增加 publicPath: '../../' 重新运行打包命令 npm run build 重新运行打包命令 npm run build 阅读全文
摘要:
var that = this; var h = 1344,w=750; var orderHight1 = document.body.clientHeight; var orderWidth1 = document.body.clientWidth; that.orderHight = orderWidth1*(h/w); window.onre... 阅读全文
摘要:
vue与react的区别:不同点:vue:1.模板和渲染函数的弹性选择2.简单的语法及项目创建3.更快的渲染速度和更小的体积React:1.更适用于大型应用和具有更好的可测试性2.同时适用于Web端和原生App3.更大的生态圈带来的更多支持和工具相同点:1.利用虚拟DOM实现快速渲染2.轻量级3.响 阅读全文
摘要:
v-for循环input标签的时候输入信息两个输入框一同显示输入信息 解决方案: <input :placeholder="items.title" v-model = "myinputdata[index]"> 使用v-model myinputdata声明一个数组就可以啦 阅读全文
摘要:
1、active-class是哪个组件的属性?嵌套路由怎么定义?答:vue-router模块的router-link组件。 2、怎么定义vue-router的动态路由?怎么获取传过来的动态参数? 答:在router目录下的index.js文件中,对path属性加上/:id。 使用router对象的p 阅读全文
摘要:
https://segmentfault.com/a/1190000015288700 1 介绍JavaScript的基本数据类型 Number、String 、Boolean 、Null、Undefined Object 是 JavaScript 中所有对象的父对象数据封装类对象:Object、A 阅读全文
摘要:
表达式全集 常用正则表达式 阅读全文