"."/> ".">
Home >Web Front-end >JS Tutorial >How to introduce vuejs locally
How to introduce vuejs locally: 1. Download the "vue.min.js" file locally from the vue official website; 2. Use the script tag in the HTML document to introduce the downloaded vue file, the syntax is " 229de7214cff37fac9497dba6e559e302cacc6d41bbb37262a98f745aa00fbf0".
The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.
Introduce vuejs locally
Go to the official website to download the vue.min.js file locally, the official website download address: https://vuejs.org /js/vue.min.js
Then directly use script to import the local vue.js file.
<script src="./js/vue.min.js"></script>
Add code in HTML document
<body> <div id="app">{{aaa}}</div> </body> <script> new Vue({ el:'#app', data:{ aaa:'Hello Vue.js !' }}) </script>
Related recommendations: "vue.js Tutorial"
The above is the detailed content of How to introduce vuejs locally. For more information, please follow other related articles on the PHP Chinese website!