art-template JavaScript模板引擎HTML代码原样输出

 template.defaults.escape = false;
 var html = template('unit_info_template', result.data);
 document.getElementById('unitBaseInfo').innerHTML = html;

更多选项参考:https://aui.github.io/art-template/docs/options.html

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容