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

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 - mainsection, 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.

主站蜘蛛池模板: 天长市| 双桥区| 中阳县| 营山县| 荆门市| 和林格尔县| 原平市| 定结县| 鄂托克前旗| 云浮市| 界首市| 丹阳市| 清徐县| 镇坪县| 安远县| 乐安县| 札达县| 唐河县| 福清市| 华蓥市| 武冈市| 台州市| 区。| 扶余县| 嫩江县| 化隆| 嘉善县| 衡东县| 班玛县| 姜堰市| 札达县| 海丰县| 茌平县| 南平市| 景德镇市| 平阳县| 滦平县| 陵川县| 湟源县| 南阳市| 大连市|