我有一个字符串"2500 - SomeValue",如何删除'SomeValue'中的'S'之前的所有内容?
感谢任何帮助。
~ck
var x = "2500 - SomeValue";
var y = x.substring(x.lastIndexOf(" - "),
// this is where I'm stuck, I need the rest of the string starting from here.
感谢任何帮助。
~ck