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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                >技術鏈:html+css+js+vue+vue-resource >API接口:https://douban.uieee.com/v2/movie/top250 >實現效果: ![](https://box.kancloud.cn/0eb2ab4436eb9965ea8542aff323b62b_1157x870.png) >html代碼 ``` <div id="book"> <div> <input type="text" placeholder="請輸入書名" v-model="name" v-on:keydown.enter="search"> <button @click="search">搜索</button> </div> <div class="left"> <h1 id="title">{{ title }}</h1> <img id="img" v-bind:src="img_url"> <p id="author">{{ author }}</p> </div> <p id="about">{{ about }}</p> </div> ``` >js代碼 ``` new Vue({ el: "#book", data: { name: "", title: "", img_url: "", author: "", about: "" }, methods: { search: function(){ /* 動態搜索實現 */ var self = this; var name = this.name; var url = `https://douban.uieee.com/v2/book/search?q=${name}&cont=1` $.ajax({ type: 'get', url: url, dataType: 'jsonp', success(res){ self.handleData(res); } }) }, handleData: function(res){ this.title = res.books[0].title; this.img_url = res.books[0].images.small; this.about = res.books[0].summary; this.author = "作者:" + res.books[0].author; } } }) ``` ----- 整個項目以上傳至[github](https://github.com/MrXuxu/H5_demo/tree/master/Vue%E9%A1%B9%E7%9B%AE)
                  <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>

                              哎呀哎呀视频在线观看