- Vue.js 2.x by Example
- Mike Street
- 163字
- 2021-07-02 20:00:24
Application space
This is the container for your application and provides a canvas for Vue to work in. All the Vue code will be placed within this tag. The actual tag can be any HTML element - main, section, and so on. The ID of the element needs to be unique, but again, can be anything you wish. This allows you to have multiple Vue instances on one page or identify which Vue instance relates to which Vue code:
<p id="app">
</p>
During the tutorials, this element with the ID will be referred to as the app space or view. It should be noted that all HTML and tags and code for your application should be placed within this container.
Although you can use most HTML tags for your application space, you cannot initialize Vue on the <body> or <HTML> tags - if you do so, Vue will throw a JavaScript error and will fail to initialize. You will have to use an element inside your body.
- JavaScript前端開發(fā)模塊化教程
- What's New in TensorFlow 2.0
- 自己動手實現(xiàn)Lua:虛擬機、編譯器和標準庫
- Rake Task Management Essentials
- Java虛擬機字節(jié)碼:從入門到實戰(zhàn)
- Java EE 7 Performance Tuning and Optimization
- 飛槳PaddlePaddle深度學(xué)習實戰(zhàn)
- Swift語言實戰(zhàn)精講
- NoSQL數(shù)據(jù)庫原理
- HoloLens與混合現(xiàn)實開發(fā)
- Mastering Embedded Linux Programming
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- C++面向?qū)ο蟪绦蛟O(shè)計
- Android熱門應(yīng)用開發(fā)詳解
- C#網(wǎng)絡(luò)編程高級篇之網(wǎng)頁游戲輔助程序設(shè)計