目录vue-cli的index.html使用环境变量 vue-cli在index.html判断环境变量加载不同代码vue-cli的index.html使用环境变量 项目中使用了公司定义的统一头部文件,
顺晟科技
2022-09-15 22:12:32
99
var cont="2010-23.23.xls"
console.log(cont.split("."));//split将字符串变为数组哈
var arr=cont.split(".");
console.log(arr[arr.length-1])
字符串和变量的拼接 直接使用模板字符串就可以了
xhr.open(\'post\', `${this.basefileupload}/base/api/userInfo/teacherInfo/importExcel`, true);
动态绑定:href值
<a
:href="`${basefileupload}/base/api/userInfo/studentInfo/downloadExcelTemplate?orgId= ${parentId}`"
>下载模板</a>
在HTML中的拼接: 外层必须使用双引号,里面紧挨着使用es6的模板字符串
js中的拼接:里层直接使用模板字符串。
09
2022-11
19
2022-10
19
2022-10
16
2022-10
15
2022-09
15
2022-09