用了这个正则表达式,苹果手机就没办法打开预览了,换成真机调试则可以,请问改怎么解决呢 麻烦大神指导一下 谢谢!
history='history: {create_time:2019-10-26 02:13:16,exchange:1339},{create_time:2019-10-26 10:19:30,exchange:1335},{create_time:2019-11-25 11:43:04,exchange:1357},{create_time:2019-12-09 01:31:59,exchange:1368},{create_time:2020-01-25 11:13:05,exchange:1323},{create_time:2020-02-04 15:47:00,exchange:1333},{create_time:2020-02-17 15:18:03,exchange:1326},{create_time:2020-02-17 17:21:34,exchange:1304},{create_time:2020-02-20 14:06:26,exchange:1312},{create_time:2020-03-03 13:04:17,exchange:1287},{create_time:2020-03-11 17:49:01,exchange:1284},'
var ex_exp = /(?<=ge:)\d+(?=\})/g
var exList = history.match(ex_exp).slice(-6)//提取后6个exchange
console.log('exlist:',exList)
你好!参考一下这个,类似问题我也遇到了https://blog.csdn.net/RELY_ON_YOURSELF/article/details/102826159