我网站上的网址页面,如果添加(?Img = // i.mysite.com/image.png)要变成这样(www.mysite.com?Img = https:// i.mysite.com/ image.png),我要提取第二部分,这是图像链接
<img id="img" src=" " >
<script>
document.getElementById("img").src = code;
</script>
document.getElementById('code!!').src = "www.mysite.com/page?img=//i.mysite.com/image.png/"