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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b354c7-4050d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b354c7-4050d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?