Vue framework study notes - Vue framework installation


Summary

This article mainly introduces how to install the development environment of vue. Download the developer version of vue and eliminate the warning by downloading the developer debugging tools

Download the production version of Vue.js

Watchvue2 documentation, click Install on the left, and click to download the generated version (including complete warnings and debugging).
If the Vue code is completely written, the production version needs to be used when building the project.

Then move the downloaded production version of vue.js to the local directory of the project and reference the file using a relative address

When vue is introduced, there is an additional Vue constructor in the world
You can enter Vue in the console to verify whether the reference is successful

Remove the first warning and install developer tools

Installing vue's developer tools in the browser's app store can eliminate the first warning (it takes magic)

If it still cannot be removed after installation, open the details of the extension and allow the extension to access the file URL.

Remove second warning

method one:

Add code in the body of the code:

<script type="text/javascript">
Vue.cofig.productionTip = false
</script>

Method Two:

If you still have this prompt after adding it, you can open vue.js and directly modify the productionTip and change it to false.


This is the end

Guess you like

Origin blog.csdn.net/Aer_7z/article/details/134494858