Replace http with https

WeChat Mini Programs
the attachment I got from the back end and returned to me is http://xxxxx/xxx/file/2017-12-01/1512095753936.pdf this format
now I want to replace http with https
how to change the path to https://xxxxx/xxx/file/2017-12-01/1512095753936.pdf
front end how to replace
ask for advice

with regular expressions
May.22,2021

urlStr.replace (/ ^ http/, "https")


this depends on what editor you use to see if there is a global search and replacement function

.
Menu