在 TypeScript 中,我想要与逗号分隔的重复字符串不同的值:
this.Proid = this.ProductIdList.map(function (e) { return e.ProductId;}).join(',');
this.Proid = "2,5,2,3,3";
Run Code Online (Sandbox Code Playgroud)
我需要:
this.Proid = "2,5,3";
Run Code Online (Sandbox Code Playgroud)