var result = new Array(); var strs = str.split(','); var temp = ""; for (var i = 0; i < strs.length; i++) { result.push(base_config + com_conf