In my @vue/cli 4.0.5 app in /public/index.html file I see code with div id=“app”
(在我的/public/index.html文件的@ vue / cli 4.0.5应用程序中,我看到div id =“ app”的代码)
<body>
<noscript>
<strong>We're sorry but vtasks doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app" style=" ></div>
<!-- built files will be auto injected -->
</body>
That is clear, but in /src/App.vue file I also see div with “app” id:
(这很明显,但是在/src/App.vue文件中,我还看到了带有“ app” ID的div:)
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
</div>
</template>
<style lang="scss">
...
That is very confusing, what for 2 "app" divs?
(这非常令人困惑,对于2个“ app” div来说是什么?)
Making some changes with div in /public/index.html I see that it is rendered in my page here... (在/public/index.html中使用div进行一些更改,我看到它在我的页面中呈现了...)
ask by Petro Gromovo translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…