2009.0727
在HTML中获取正确的URL属性值

在HTML中,常见的URL有多种表示方式:

相对URL:
    example.php
    demo/example.php
    ./example.php
    ../../example.php
    /example.php
绝对URL:

http://dancewithnet.com/example.php

http://dancewithnet.com:80/example.php

https://dancewithnet.com/example.php

同时HTML中有大量的元素属性值为URL,一般利用JavaScript获取这些URL属性值有两种方法:

阅读全文 »

标签:, ,
在23:57发表于Javascript & DOM & AJAX,有评论13
2007.0130
URL格式规范

一、格式说明

“|” 表示隔开的两部分只能出现其中一个,方括号[]括起来的表示可选,文字由双引号””括起来,以n*开头表示至少n个或更多的,n的缺省值为0。 阅读全文 »

标签:,
在6:48发表于web2.0 & so on,有评论3

回到页眉