我从服务器调用收到 JSON 字符串,格式如下:
{"0":{"jpgN":"2","spread_value":"392.22","relevant_new":"text"},"1":{"jpgN":"1","spread_value":"395.28","relevant_new":"text"},"count":2}
使用 RegExp,有没有办法用字符串"http://mydomain.com/keyValue.jpg"
(例如"http://mydomain.com/2.jpg"
)替换任何键 jpgN 的值?