<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 功能強大 支持多語言、二開方便! 廣告
                ``` <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"> <title>3使用laytpl</title> <!--weui.css僅為快速的做出頁面,可刪除--> <link rel="stylesheet" href="http://me.52fhy.com/demo/jstemp/static/weui.css"/> <script src="static/zepto.min.js"></script> <!--引入laytpl--> <script src="static/laytpl-v1.1.js"></script> </head> <body> <div class="weui_panel weui_panel_access"> <div class="weui_panel_hd">文章列表</div> <div class="weui_panel_bd js-blog-list"> </div> </div> <!--模板--> <textarea class="js-tmp" style="display:none;"> <div class="weui_media_box weui_media_text"> <a href="{{ d.url }}" class="" target="_blank"> <h4 class="weui_media_title">{{ d.title }}</h4> </a> <p class="weui_media_desc">{{ d.desc }}</p> </div> </textarea> <!--/模板--> <script type="text/javascript"> /* laytpl官網 - 精妙的JavaScript模板引擎 http://laytpl.layui.com/ 支持if等語句{{# if(){ //some code ... }} {{# } }} 模版語法: 輸出一個普通字段,不轉義html: {{ d.field }} 輸出一個普通字段,并轉義html: {{= d.field }} JavaScript腳本: {{# JavaScript statement }} */ $(function(){ $.ajax({ url: 'static/blog.json', type: 'get', dataType: 'json', success: function (response) { var htmlList = ''; var data = response.list; var htmlTemp = $("textarea.js-tmp").val(); $.each(data, function(i,el) { //htmlList += htmlTemp.temp(el); htmlList += laytpl(htmlTemp).render(el); }); $('.js-blog-list').empty().append(htmlList); }, error: function (jqXHR, textStatus, errorThrown) { if (textStatus == 'timeout') { alert('請求超時'); return false; } console.log(jqXHR.responseText); } }); }); </script> </body> ```
                  <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>

                              哎呀哎呀视频在线观看