小编Ант*_*нов的帖子

String.Format在TypeScript中不起作用

String.Format不起作用TypeScript.
错误:

The property 'format' does not exist on value of type 
 '{ prototype: String; fromCharCode(...codes: number[]): string; 
 (value?: any): string; new(value?: any): String; }'.
Run Code Online (Sandbox Code Playgroud)

attributes["Title"] = String.format(
    Settings.labelKeyValuePhraseCollection["[WAIT DAYS]"],
    originalAttributes.Days
);
Run Code Online (Sandbox Code Playgroud)

javascript string string-formatting typescript

43
推荐指数
5
解决办法
9万
查看次数