参考:https://blog.youkuaiyun.com/u010881899/article/details/80895661
例:引入element-ui
js:
mounted() { const oScript = document.createElement('script'); oScript.type = 'text/javascript'; oScript.src = 'https://unpkg.com/element-ui@2.3.7/lib/index.js'; document.body.appendChild(oScript); }
css:
<style scoped> @import 'https://unpkg.com/element-ui@2.3.7/lib/theme-chalk/index.css'; </style>
本文详细介绍如何在项目中快速引入Element-UI组件库,包括JS和CSS的加载方式,适用于需要快速上手Element-UI的前端开发者。
2304

被折叠的 条评论
为什么被折叠?



