Django Book 翻译
菜单>:
TOC
返回
原文:
The interpolation syntax is borrowed from Python. You shouldnt go over the top with string interpolation, though this is still JavaScript, so the code will have to do repeated regular-expression substitutions. This isnt as fast as string interpolation in Python, so keep it to those cases where you really need it (e.g., in conjunction with ``ngettext`` to produce proper pluralization).
翻译:
插补的语法是借鉴了Python。但不应该超过字符串插补的能力,这仍然还是JavaScript,因此代码将不得不做重复的正则替换。它不会和Python中的字符串插补一样快,因此只有真正需要的时候再使用它(例如,利用 ``ngettext`` 生成合适的复数形式)。
备注:
译者: