Authored by 姜枫

fix ie8 forEach

@@ -4,11 +4,11 @@ var cdnDomains = require('../../../../config/dns-prefetch'); @@ -4,11 +4,11 @@ var cdnDomains = require('../../../../config/dns-prefetch');
4 4
5 function cdnReplace(cdn, imgUrl) { 5 function cdnReplace(cdn, imgUrl) {
6 if (cdn === 'qcloud') { 6 if (cdn === 'qcloud') {
7 - Object.keys(cdnDomains).forEach(key => { 7 + for (var key in cdnDomains) {
8 if (imgUrl.indexOf(key) >= 0) { 8 if (imgUrl.indexOf(key) >= 0) {
9 imgUrl = imgUrl.replace(key, cdnDomains[key]); 9 imgUrl = imgUrl.replace(key, cdnDomains[key]);
10 } 10 }
11 - }); 11 + }
12 } 12 }
13 return imgUrl; 13 return imgUrl;
14 } 14 }