jquery分割字符串取值

var strs = new Array();

var res="a*b";

strs = res.split("*");

strs[0] 的值为a,

strs[1] 的值为b