"."/> ".">

Home  >  Article  >  Web Front-end  >  How to introduce vuejs locally

How to introduce vuejs locally

青灯夜游
青灯夜游Original
2021-09-14 14:46:098591browse

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".

How to introduce vuejs locally

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:&#39;#app&#39;,
		data:{
			aaa:&#39;Hello Vue.js !&#39;
		}})
</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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn