原文链接 https://segmentfault.com/q/1010000010352622 希望将下列数组中的sh替换成沪,sz替换成深 var stooges = [ {label:1,value:1,placeCode: 'sh', stock_code: 40}, {label:1,value:1,placeCode: 'sh', stock_code: 50}, {label:1,value:1,placeCode: 'sz', stock_code: 60,status:1},…