相关文章推荐
想出国的大象  ·  vue ...·  1 月前    · 
无聊的莴苣  ·  Vue 中 $set() 与 ...·  1 月前    · 
坚韧的跑步鞋  ·  Layui ...·  1 月前    · 
挂过科的镜子  ·  VUE 使用 select ...·  1 月前    · 
奔放的排球  ·  如何限制Ant Media ...·  1 年前    · 
爱运动的帽子  ·  Application.PrintCommu ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

here is my html,when I use 'v-for',the wrong is 'item is not defined'.

    <form action="">
        <div class=" form-group">
                <th v-for="item in title">{{item}} </th>
    </form>
new Vue({
        el: "#app",
        data: {
            title:['name','sort','company'],

I don't know how to do with the problems.please help me ,thank you very much

I have no idea why, but once I've changed div.form-group in table.form-group (because tr can only be used in a table) it worked. no more error message – Cedric Cholley Jun 1, 2021 at 14:19

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.