提取最新的各国疫情数据中json字符串
1.正则表达式提取json字符串:
-----------------------------------------------------------------初始数据-----------------------------------------------------------------
try { window.fetchIndexMallList = {"success":true,"errorCode":0,"results":{"items":[{"commodityId":"3591210463042011540","commodityLogo":"https://img1.dxycdn.com/2022/1230/768/5942165308020931953-68.png","commodityName":"现货抗原检测试剂盒25人份","cornerMark":"限量抢购中","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3588838986124169233&from=other&chdShareFromId=3589899615392486250&chdShareEntityId=3370441352948220030&chdShareType=2","miniProgramShortLink":"https://dxy.cool/YTGSHf","skuId":"3591210463042011547","price":25800,"discountPrice":6500,"sortId":110,"sellStatus":0},{"commodityId":"3549260783022588925","commodityLogo":"https://img1.dxycdn.com/2022/1205/807/2086858196898476853-68.png","commodityName":"维生素C凝胶糖果60粒","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3551181722177885802","price":9900,"discountPrice":7900,"sortId":90,"sellStatus":0},{"commodityId":"3594172021233582418","commodityLogo":"https://img1.dxycdn.com/2023/0114/646/1929590820066714953-68.png","commodityName":"海水鼻腔喷雾器1支起","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3594176537391615470","price":4900,"discountPrice":4500,"sortId":70,"sellStatus":0},{"commodityId":"3523848908935773531","commodityLogo":"https://img1.dxycdn.com/2022/0704/828/9538664325660228553-68.png","commodityName":"鼻子纸30抽*40包","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3523848908935773539","price":11900,"discountPrice":11900,"sortId":60,"sellStatus":0},{"commodityId":"3590133205787542772","commodityLogo":"https://img1.dxycdn.com/2022/1219/969/6714530548409439853-68.jpg","commodityName":"安贝儿75%酒精消毒液120ml*2瓶","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3588838986124169233&from=other&chdShareFromId=3590079383396684707&chdShareEntityId=3370441352948220030&chdShareType=2","miniProgramShortLink":"https://dxy.cool/38Botr","skuId":"3590133205787542780","price":7980,"discountPrice":7980,"sortId":1,"sellStatus":0}]}}}catch(e){}
-------------------------------------------------------json_str:正则表达式提取json字符串---------------------------------------------------
[{"commodityId":"3591210463042011540","commodityLogo":"https://img1.dxycdn.com/2022/1230/768/5942165308020931953-68.png","commodityName":"现货抗原检测试剂盒25人份","cornerMark":"限量抢购中","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3588838986124169233&from=other&chdShareFromId=3589899615392486250&chdShareEntityId=3370441352948220030&chdShareType=2","miniProgramShortLink":"https://dxy.cool/YTGSHf","skuId":"3591210463042011547","price":25800,"discountPrice":6500,"sortId":110,"sellStatus":0},{"commodityId":"3549260783022588925","commodityLogo":"https://img1.dxycdn.com/2022/1205/807/2086858196898476853-68.png","commodityName":"维生素C凝胶糖果60粒","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3551181722177885802","price":9900,"discountPrice":7900,"sortId":90,"sellStatus":0},{"commodityId":"3594172021233582418","commodityLogo":"https://img1.dxycdn.com/2023/0114/646/1929590820066714953-68.png","commodityName":"海水鼻腔喷雾器1支起","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3594176537391615470","price":4900,"discountPrice":4500,"sortId":70,"sellStatus":0},{"commodityId":"3523848908935773531","commodityLogo":"https://img1.dxycdn.com/2022/0704/828/9538664325660228553-68.png","commodityName":"鼻子纸30抽*40包","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3587310742271172996&from=other&chdShareFromId=3589406510197798564&chdShareEntityId=3370441352948220031&chdShareType=2","miniProgramShortLink":"https://dxy.cool/13pZ2L","skuId":"3523848908935773539","price":11900,"discountPrice":11900,"sortId":60,"sellStatus":0},{"commodityId":"3590133205787542772","commodityLogo":"https://img1.dxycdn.com/2022/1219/969/6714530548409439853-68.jpg","commodityName":"安贝儿75%酒精消毒液120ml*2瓶","cornerMark":"","miniProgramLink":"/pages/common/cms/activity/index?name=jk_zxcgvhbjk&moduleId=3588838986124169233&from=other&chdShareFromId=3590079383396684707&chdShareEntityId=3370441352948220030&chdShareType=2","miniProgramShortLink":"https://dxy.cool/38Botr","skuId":"3590133205787542780","price":7980,"discountPrice":7980,"sortId":1,"sellStatus":0}]
2.正则表达式总结: