javascript - es6 import method
大家讲道理
大家讲道理 2017-05-19 10:14:13
0
2
485

The syntax of import is import xxx from ooo. Now in vue, can the location of ooo use an external url? That is to say, this file is not in this project. Can I introduce the components in this file?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
世界只因有你

Ruan Yifeng’s introduction to es6. Now es6 is translated into es5 through babel. Your question is that the root path of the loaded file should be set in webpack

仅有的幸福

If it is the address of the local machine, it is ok. Because it is finally packaged through webpack
If it is the URL of the http protocol, it is not ok.
If npm cannot install webpack, try installing it with cnpm

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template