【发布时间】:2013-07-02 08:16:25
【问题描述】:
当我使用 Mustache.to_html 方法时,它会返回空字符串 (“”) 。但是当我调试代码并使用检查点继续前进时,我得到的模板,
为什么我会出现这种行为?
我的代码是这样的-
var temp = $.get(/templates/mytemplate);
var data = {
name : "john",
};
var html = Mustache.to_html(temp,date);
我得到html 和"" 但通过使用breakpoing 我得到了正确的html。为什么?
【问题讨论】:
-
看起来像这个问题stackoverflow.com/questions/14220321/…,你似乎也缺少引号......
标签: javascript html templates mustache