如何删除,@contacts.Assessor.firstname@ @contacts.Assessor.lastname@
和
来自的,@contacts.Assessor - Secondary.firstname@ @contacts.Assessor - Secondary.lastname@
javascript中的字符串?
由于
答案 0 :(得分:1)
只需使用.replace()
string = string
.replace(',@contacts.Assessor - Secondary.firstname@ @contacts.Assessor - Secondary.lastname@', '')
.replace(',@contacts.Assessor.firstname@ @contacts.Assessor.lastname@', '');