<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ## 1.父組件通過子組件的屬性向子組件傳遞參數 ### 1-1不聲明傳值的類型 ~~~ <div id="app"> <counter :count="1"></counter> </div> <script> var counter ={ props:['count'], template:"<div>{{count}}</div>" } var vm = new Vue({ el:"#app", components:{ counter } }) </script> ~~~ ### 1-2 聲明傳值的類型 ~~~ var counter ={ props:{ count:Number }, template:"<div>{{count}}</div>" } ~~~ ### 1-3子組件不能直接修改從父組件傳遞過來的參數 ~~~ var counter ={ props:{ count:Number }, methods:{ handleClick(){ //子組件不能直接修改從父組件傳遞過來的參數 this.count++ } }, template:"<div @click='handleClick'>{{count}}</div>" } var vm = new Vue({ el:"#app", components:{ counter } }) ~~~ ### 1-4 子組件修改從父組件傳遞的參數,可以在data中定義一個參數接收 ~~~ var counter ={ props:{ count:Number }, data:function(){ return{ number:this.count } }, methods:{ handleClick(){ this.number++ } }, template:"<div @click='handleClick'>{{number}}</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>

                              哎呀哎呀视频在线观看