如何给TypeScript中的String增加扩展方法,最后在ts中这样使用:比如 String.format()
收起
String.prototype['format']=function(){}
报告相同问题?