欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS location幾個方法小姐

 更新時間:2008年07月09日 22:55:19   作者:  
整理下面的方法,利用使用js獲取url參數(shù)的朋友
location.hash 設(shè)置或獲取 href 屬性中在井號“#”后面的分段。 
location.host 設(shè)置或獲取 location 或 URL 的 hostname 和 port 號碼。 
location.hostname 設(shè)置或獲取 location 或 URL 的主機名稱部分。 
location.href 設(shè)置或獲取整個 URL 為字符串。 
location.pathname 設(shè)置或獲取對象指定的文件名或路徑。 
location.port 設(shè)置或獲取與 URL 關(guān)聯(lián)的端口號碼。 
location.protocol 設(shè)置或獲取 URL 的協(xié)議部分。 
location.search 設(shè)置或獲取 href 屬性中跟在問號后面的部分。

相關(guān)文章

最新評論