首页 > 其他 > 详细

template.helper 多参数

时间:2018-09-26 18:53:54      阅读:247      评论:0      收藏:0      [点我收藏+]
<script type="text/html" id="text4">
    {{detail name classInfo schoolInfo}}
</script>
var users={
        name:"叶明龙",
        age:18,
        classInfo:{
            name:"二年级",
            teacher:"张老师"
        },
        schoolInfo:{
            name:"张珊一中"
        }


    }
    template.helper(‘detail‘,function (arg0,arg1,arg2) {
        return arg0+arg1.name+arg2.name;
    })

    document.write(template(‘text4‘, users));

template.helper 多参数

原文:https://www.cnblogs.com/yeminglong/p/9708731.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!