Home > Web Front-end > HTML Tutorial > How to write absolute address_html/css_WEB-ITnose

How to write absolute address_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 12:19:08
Original
1292 people have browsed it

比方说  怎么改成绝对地址 现在是相对地址。。


回复讨论(解决方案)

这个是域名啊。。。
难道要http://a6965921z.taobao.com

<script>var str = '<a href="a6965921z.taobao.com"></a>';str = str.replace(/(<a.*href\=\")([^\"]*)(.*)<\/a>/g,"$1http://$2$3");alert(str);</script>
Copy after login

改绝对地址有那么麻烦么。。坑爹啊

你把这个地址前的所有地址加进去不行吗?

把浏览器地址栏前面的加进去就可以了

有http的就是绝对地址,比如 http://www.baidu.com/

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template