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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                >技術鏈:html+css+js+vue+vue-resource >API接口:https://douban.uieee.com/v2/movie/top250 >實現效果: ![](https://box.kancloud.cn/dea78a800be4571db10477de82dfa0eb_1616x670.gif) >html代碼 ``` <div id="movie"> <ul> <li v-for="item in list"> <img v-bind:src="item.img" alt=""> <p>{{ item.title }}</p> </li> </ul> </div> ``` >css代碼 ``` * { margin: 0; padding: 0; } #movie { width: 1200px; margin: 30px auto auto auto; } li { list-style-type: none; width: 200px; float: left; margin: 20px; } img { width: 100%; height: 280px; } ``` >js代碼 ``` new Vue({ el: '#movie', data: { list: [] }, beforeCreate(){ var self = this; // var url = 'https://douban.uieee.com/v2/movie/top250' var url = 'https://douban.uieee.com/v2/movie/top250?start=0&count=40' this.$http.jsonp(url).then(res=>{ // console.log(res); let subjects = res.body.subjects; subjects.forEach(element => { let img = element.images.small; let title = element.title; let temp = {}; temp.img = img; temp.title = title; self.list.push(temp); }); }) } }) ``` --------- 整個項目以上傳至[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>

                              哎呀哎呀视频在线观看