tmodjs icon indicating copy to clipboard operation
tmodjs copied to clipboard

生成的template.js调用时不传参作为data会报错

Open lsycxyj opened this issue 11 years ago • 1 comments

设置为native模式 模板中有for循环,但是不传data进行调用就报错了(如输出10个hello) 啊,看了一下生成的文件,好像没对data做非空检查啊

lsycxyj avatar Jun 26 '14 09:06 lsycxyj

template(path, data)中的data是必须字段。后续可能会支持为空

aui avatar Jun 26 '14 10:06 aui