最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - How to replace http with https via javascript - Stack Overflow

programmeradmin0浏览0评论

I have the following rss object on my page...

data.data[i].link

and it produces the following URL...

http://

I would like the URL instead to start out with...

https:// 

What would be the easiest way to modify this?

Thanks for any advice

I have the following rss object on my page...

data.data[i].link

and it produces the following URL...

http://

I would like the URL instead to start out with...

https:// 

What would be the easiest way to modify this?

Thanks for any advice

Share Improve this question edited Jun 24, 2013 at 14:41 klewis asked Jun 24, 2013 at 14:18 klewisklewis 8,35016 gold badges67 silver badges111 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 15
data.data[i].link.replace('http://','https://');
发布评论

评论列表(0)

  1. 暂无评论