ht.ui.LocaleString(text, params, defaultValue)

new LocaleString(text, params, defaultValue)

本地化字符串

Parameters:
Name Type Attributes Description
text string <optional>

模板字符串

params any <optional>

模板数据对象

defaultValue string <optional>

默认值

Example
new ht.ui.LocaleString('&[ui.hightopo]'+'{0}' +'&[ui.hightopo]',['awesome']);
new ht.ui.LocaleString('&[ui.hightopo]'+'{key}' +'&[ui.hightopo]',{key:'awesome'});

Extends

  • Object

Members

_localeVersoinCache :number

_stringCache :string