selectedName = selectedName.replace(/,$/, '');//去除尾部字符串 selectedCode = selectedCode.replace(/,$/, '');
//替换所有-号 replace(/-/g,'')
/abc/.test('vdsvdvdfabc') //参数中的字符串是否包含abc