【发布时间】:2013-10-19 21:07:49
【问题描述】:
我可以使用data-18n 没有问题,像这样的 json 属性文件:
<div data-i18n="errIncorrectSpecies"></div>
json 属性文件有这个条目:
"errIncorrectSpecies":"You have selected incorrect species tests."
如何将动态参数放入“errIncorrectSpecies”值?我想在我的 json 文件中这样做:
"errIncorrectSpecies":"You have selected {0} tests for this {1}."
只是不确定如何传入“{0}”和“{1}”...
【问题讨论】: