Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

官方文档中的一个示例错误 #124

Open
LeeScofield opened this issue Jun 6, 2017 · 0 comments
Open

官方文档中的一个示例错误 #124

LeeScofield opened this issue Jun 6, 2017 · 0 comments

Comments

@LeeScofield
Copy link

LeeScofield commented Jun 6, 2017

var json = {
value: '&lt ;strong&gt ;juicer&lt ;/strong&gt ;'
};

var escape_tpl='${value}';
var unescape_tpl='$${value}';

juicer(escape_tpl, json); //输出 '<strong>juicer</strong>'
juicer(unescape_tpl, json); //输出 'juicer'

这里的json变量应为var json = { value: '<strong>juicer</strong>' };
这里应该是显示的问题。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant