<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之旅 廣告
                [TOC] ## 1.以對象的方法傳值 ~~~ <div id="app"> <div @click="handleClick" :class="{show:isShow}"> hello world </div> </div> //show是否顯示取決于isShow的值 .show{ color:red; } ~~~ ~~~ var vm = new Vue({ el:"#app", data:{ isShow:false }, methods:{ handleClick(){ this.isShow = !this.isShow; } } }) ~~~ ## 2.使用數組 ~~~ <div id="app"> <div @click="handleClick" :class="[isShow]"> hello world </div> </div> ~~~ ~~~ var vm = new Vue({ el:"#app", data:{ isShow:"show" }, methods:{ handleClick(){ this.isShow = (this.isShow=="")?"show":"" } } }) ~~~ ## 3.style實現樣式綁定 ~~~ <div id="app"> <div @click="handleClick" :style="myStyle"> hello world </div> </div> //JS var vm = new Vue({ el:"#app", data:{ myStyle:{ color:"red" } }, methods:{ handleClick(){ this.myStyle.color = (Boolean(this.myStyle.color))?"":"red" } } }) ~~~ ## 4.對象和數組的混用 ~~~ <div :style="[myStyle,{fontSize:'20px'}]"> hello world </div> ~~~
                  <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>

                              哎呀哎呀视频在线观看