<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                1. 不使用組件 ~~~ <template> <div class="home"> <input v-model="value"> <button @click="handleClick">增加</button> <ul> <li v-for="(item,index) of list" :key="index" @click="handleDelete(index)">{{item}}</li> <!-- <list-item v-for="(item,index) of list" :key="index" :inx="index" :item="item" @delete="handleDelete"></list-item> --> </ul> </div> </template> <script> import ListItem from "../components/ListItem"; export default { name: "home", components:{ ListItem }, data() { return { value: "hello world", list: [] }; }, methods: { handleClick() { if (!this.list.includes(this.value)) { this.list.push(this.value); this.value=""; } }, handleDelete(index){ this.list.splice(index,1) } } }; </script> <style lang="scss" scoped> </style> ~~~ 2. 使用組件 ~~~ //ListItem.vue <template> <div> <li @click="handleDelete" > {{item}}</li> </div> </template> <script> export default { name:"ListItem", props:{ item:{ type:String, }, inx:{ type:Number } }, methods:{ handleDelete(){ this.$emit("delete",this.inx) } } } </script> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看