To remove the quotes from the given JavaScript string, you can use the replace() method with a regular expression.

Here's an example of how you can achieve this:

let str = 'https://apibucket.oss-cn-hangzhou.aliyuncs.com/upload/upload/169399034585639.jpg,https://apibucket.oss-cn-hangzhou.aliyuncs.com/upload/upload/169399034915258.jpg';
let result = str.replace(/"/g, '');

console.log(result);

Output:

https://apibucket.oss-cn-hangzhou.aliyuncs.com/upload/upload/169399034585639.jpg,https://apibucket.oss-cn-hangzhou.aliyuncs.com/upload/upload/169399034915258.jpg

In this example, the replace() method is used with the regular expression /"/g to match all occurrences of double quotes and replace them with an empty string. The resulting string is stored in the result variable

js httpsapibucketoss-cn-hangzhoualiyuncscomuploadupload169399034585639jpghttpsapibucketoss-cn-hangzhoualiyuncscomuploadupload169399034915258jpg 去除

原文地址: http://www.cveoy.top/t/topic/iZPt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录