原来使用vue-cli写项目,写了个原生js的demo,在引入时发生报错暴露方式var uploadPath = 'hello world!';export {uploadPath}引入方式<script type="text/javascript">
import {uploadPath} from "../../common/js/global";</script>报错如果说是无法识别ES6的话应该是 import报错,而且vue-cli应该已经配置过webpack了。请教各位这是什么问题?
添加回答
举报
0/150
提交
取消