这个前面字符用什么方法取到?jquery中字符串“fdhgahah-789",怎么取得-前面的随机字符? [解决办法]indexOf subString[解决办法]
alert('fdhgahah-789'.split('-')[0]);