我有以下数组:
[ 'https://scihub.copernicus.eu/dhus/odata/v1/Products(\'67c8ca21-bcdf-4298-
aaf0-ae23c18510f1\')/$value',
'https://scihub.copernicus.eu/dhus/odata/v1/Products(\'313fbef3-f53c-456f-
be75-1002a3b3e2a5\')/$value',
'https://scihub.copernicus.eu/dhus/odata/v1/Products(\'31df567e-399b-4065-
9399-75f4233cba5f\')/$value',
'https://scihub.copernicus.eu/dhus/odata/v1/Products(\'f643e5f4-3791-436e-
b304-4d451391af4d\')/$value',
'https://scihub.copernicus.eu/dhus/odata/v1/Products(\'9faebdb4-5697-4070-
aafe-2c2d1ee99a06\')/$value' ]
数组是此表达式的结果:
requestarray = [];
for (i=0; i<data.length;i++) {
requestarray.push(url_search + "(" + "'" + data[i] + "'" + ")/$value");
}
为什么要插入“\”,我该如何避免或修复它?