How to load library files required by Element in Html page

Element, Java study notes:
How to load the library files required by element on an Html page:
1. Load online resources:

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
		<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
		<script src="https://unpkg.com/[email protected]/lib/index.js"></script>
		<link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/theme-chalk/index.css"> 

2. Load locally downloaded resources

<script src="../js/element/axios.js"></script>
<script src="../js/element/vue.js"></script>
<script src="../js/element/index.js"></script>
<link rel="stylesheet" href="../js/element/index.css">

After testing, both methods can run normally. It should be noted that the file path must be written correctly when loading local resources.
Qiu Feng writes in Zibo, business cooperation and technical exchange: Q375172665

Guess you like

Origin blog.csdn.net/hmwz0001/article/details/132314360