[Vuejs]-How can I solve Vue.js original tag error in index,html tagl?

0👍

did you set id="app" to bind vue object and html?
I don’t think it is binding.


<title>for vue</title>
<link rel="stylesheet" href="main.css">

<div id="app">
  <ol>
    <li v-for="item in list" >{{item}}</li>
  </ol>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10"></script>
<script>
    var app = new Vue({
          el: '#app',
          data: {
                    list: ['apple','banana','stew',]
                }
    })
</script>

Leave a comment