(@_@;)我是程序猿,我编程,我快乐,知识改变命运,技术成就梦想   oh yeah!合作VX "w6668263" 联系Email:ye583025823@126.com

template.helper 多参数

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

 

 

 

 

 

 

如果这篇文章对您有帮助,您可以打赏我

技术交流QQ群:15129679

 

 
 

 

posted on 2018-09-26 18:09  一个草率的龙果果  阅读(266)  评论(0编辑  收藏  举报

导航