更新时间:2023-02-22 12:04:04
使用正则表达式,您可以执行以下操作:
Using regex you can do:
ambassadorName.replace(/,(?=[^,]*$)/, ' and')
我希望它能起作用.