<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之旅 廣告
                ``` vm = new Vue({ el: "#my", //獲取元素 data: { name: "zhangsan", age: "20", user: { id: 100, name: "hello" } }, name:'merror', show:function() { conslog.log('show'); } }); <div id="my"> <h1>{{name}}</h1> <h2 ref="hello">{{age}}</h2> </div> ``` 1. 獲取data中的屬性 conslog.log(vm.name); 或vm.$data.name 2. 獲取Vue實例關聯的元素 vm.$el.style.color = 'red' 3. 獲取自定義屬性 vm.$options.name vm.$options.show() 4. 獲取所有添加ref屬性的元素 //操作DOM節點 vm.$refs.hello.style.color = 'blue'; 5. 手動掛載Vue實例 vm.$mount('#my'); new Vue({}).$mount('#my'); 6. 修改對象中的內容 this.user.name ='lee';//修改 this.$set(this.user,'name','lee');//添加 this.$delete(this.user,'name');//刪除對應值
                  <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>

                              哎呀哎呀视频在线观看