template.js 分割字符创

发表于2016-12-28 17:46:51

 <script type="textml" id="android_template">
        {{each Data as value i}}
        <div class="detail">
            <div class="version">
                <span>v{{value.VerName}}</span>
                <em>{{value.CreateTime.substring(0,10) }}</em>
                <a href="http://{{value.Url}}" target='_blank' class="versionDownload">点击下载</a>
            </div>
            {{sss = value.Description.split("\r\n")}}
            <ul class="info clearfix">
                {{each sss as value i}}
                <li>{{value}}<>
                {{/each}}
            </ul>
        </div>
        {{/each}}
    </script>


评论(0)

请先登录后再评论,如果没有账号请先注册

发表评论