Vue cli 引入第三方JS和CSS的常用方法分享
第一种方法:
直接在index.html中引入
js
<script type="text/javascript" src="static/mui.min.js" ></script>
css
<link rel="stylesheet" href="static/mui.min.css" rel="external nofollow" />
第二种 在单页面中用import方法导入
js
import mui from '../../../static/mui.min.js'
css
@import "../../common/stylus/mixin";
import引入 要写好路径即可。
相关推荐
NARUTOLUOLUO 2020-08-03
Ladyseven 2020-10-22
李鴻耀 2020-08-17
yaodilu 2020-08-03
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT
昔人已老 2020-07-19
qiupu 2020-11-04
多读书读好书 2020-11-03
RedCode 2020-10-28
jiedinghui 2020-10-25
hellowzm 2020-10-12
zuncle 2020-09-28
Ladyseven 2020-09-11
jiedinghui 2020-09-07
xiaohuli 2020-09-02
葉無聞 2020-09-01
impress 2020-08-26
ThikHome 2020-08-24