js字符串 '1122;3344;5566'和'3344;7788'合并为'1122;3344;5566;7788'
const str1 = '1122;3344;5566';
const str2 = '3344;7788';
const arr1 = str1.split(';');
const arr2 = str2.split(';');
const mergedArray = [...new Set([...arr1, ...arr2])];
const result = mergedArray.join(';');
console.log(result);