SOURCE

let str = '303*11,306*2,310*4,314*10,1403*6,1705*4,507*4,508*3,511*2,514*2,516*7,2702*2,2706*2,2708*2,2709*5,2710*6,2712*6,2714*4,2715*9,2717*13,813*1,816*6' 
   let othernum = '22'
    function  getNum(num){
        const list = num.split(',')
        const arr = []
        list.forEach((item,i) => {
          if(item.indexOf('*')>-1){
            const narr = item.split('*')
            for (let j = 0; j < narr[1]; j++) {
            arr.push(narr[0]+othernum)              
            }
          }else {
            arr.push(item+othernum)
          }
        });
        return arr
      }

      let list = getNum(str)
      list.forEach((item)=>{
        document.write(`<div>${item}</div>`)
      })
console 命令行工具 X clear

                    
>
console