将接口返回的http开头链接替换为https开头
1. const ress = `https${res?.result.substr(4)}`;//按位数替换
2.'https://www.baidu.com/s?wd/http'.replace('https','http');//仅替换第一个符合要求的
将接口返回的http开头链接替换为https开头
1. const ress = `https${res?.result.substr(4)}`;//按位数替换
2.'https://www.baidu.com/s?wd/http'.replace('https','http');//仅替换第一个符合要求的