const result = [ {storeNo: 'STR8000', name: 'HIGHROCK'}, {storeNo: 'STR8001', name: 'NIKE'}]
const resultdata = JSON.stringify(result).replace(/{"storeNo":"/g, '').replace(/","name":"/g, ' --- ').replace(/"}/g, '').replace('[', '').replace(']', '')
打印结果:STR8000 --- HIGHROCK,STR8001 --- NIKE,
将打印结果处理成数组
const resultArray = resultdata.split(',')
打印结果:['STR8000 --- HIGHROCK', 'STR8001 --- NIKE']
06-30
437
08-19