Vue全局引入JS的方法
摘要:
两种情况: 1. js为ES5的写法时,如下(自定义的my.js): Vue中的全局引入方式为,在index.html中通过如下方式引入即可: 2. js为 ES6 模块化写法时,即 import,export形式,如下: var fun=function(){ console.log('hello 阅读全文
posted @ 2018-11-01 22:03 zhcgis 阅读(24916) 评论(0) 推荐(1) 编辑