- Vue.js 2.x by Example
- Mike Street
- 168字
- 2021-07-02 20:00:24
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.
- Android和PHP開發最佳實踐(第2版)
- Mastering SVG
- Learning ASP.NET Core 2.0
- Groovy for Domain:specific Languages(Second Edition)
- C++ 從入門到項目實踐(超值版)
- Linux命令行與shell腳本編程大全(第4版)
- Unity 2018 Shaders and Effects Cookbook
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Kivy Cookbook
- Go語言底層原理剖析
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- Delphi開發典型模塊大全(修訂版)
- Python Programming for Arduino
- Julia High Performance(Second Edition)
- DevOps 精要:業務視角