官术网_书友最值得收藏!

Vue library

For the examples in this book, we are going to be using a hosted version of Vue.js from a CDN (Content Delivery Network) unpkg. This ensures that we have the latest version of Vue in our application, and also means we do not need to create and host other JavaScript files. Unpkg is an independent site that hosts popular libraries. It enables you to quickly and easily add a JavaScript package to your HTML, without having to download and host the file yourself:

      <script src="https://unpkg.com/vue"></script>

When deploying your code, it is a good practice to serve up your libraries from local files rather than relying on CDNs. This ensures that your implementation will work with the currently - saved version, should they release an update. It will also increase the speed of your application, as it will not need to request the file from another server.

The script block following the library include is where we are going to be writing all our JavaScript for our Vue application.

主站蜘蛛池模板: 万安县| 策勒县| 双流县| 仪陇县| 榆社县| 无为县| 怀安县| 汶川县| 友谊县| 策勒县| 民权县| 启东市| 三门县| 肥西县| 新源县| 康定县| 湖北省| 石家庄市| 仁布县| 波密县| 吴江市| 曲靖市| 东兰县| 玉屏| 循化| 普格县| 广河县| 聊城市| 赞皇县| 积石山| 神木县| 陆川县| 白山市| 石渠县| 尼玛县| 南京市| 怀化市| 阳原县| 江川县| 庐江县| 宜宾市|