更新时间:2023-11-19 18:01:10
我认为这只是你的渲染函数中的JS有问题。
I think it's just a problem with your JS inside your renderer function.
这行:
返回ich.templateName(数据);
return ich.templateName(data);
将寻找一个字面上叫TEMPLATENAME模板
Will look for a template literally called "templateName"
你想要什么,因为TEMPLATENAME是一个变量是一样的东西:
What you want, since templateName is a variable is something like:
return ich[templateName](data);
那么它将间$ P $私人的TEMPLATENAME变量的值来代替。
Then it will interprete the value of the templateName variable instead.