var strs = new Array(); var res="a*b"; strs = res.split("*"); strs[0] 的值为a, strs[1] 的值为b 转载于:https://www.cnblogs.com/Zpyboke/p/5228176.html