ホームページ > ウェブフロントエンド > jsチュートリアル > JS が現在のアドレスを取得する JS が現在の URL を取得する サンプルコード_javascript スキル

JS が現在のアドレスを取得する JS が現在の URL を取得する サンプルコード_javascript スキル

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
リリース: 2016-05-16 16:58:15
オリジナル
1111 人が閲覧しました
复制代字代打如下:



thisDLoc = document.location;

thisURL = document.URL;

thisHREF = document.location.href;

thisSLoc = self.location.href;

<スクリプト言語="javascript">
thisTLoc = top.location.href;
thisPLoc = 親.ドキュメント.場所;
thisTHost = トップ.場所.ホスト名;
thisHost = 場所.ホスト名;
strwrite = ""
strwrite = ""
strwrite = ""
strwrite = ""
document.write( strwrite );

thisTLoc = top.location.href;

thisPLoc = 親.ドキュメント.場所;

thisTHost = トップ.場所.ホスト名;

thisHost = location.hostname;

thisTLoc: ["thisTLoc "]
thisPLoc: ["thisPLoc "]
thisTHost: ["thisTHost "]
thisHost: ["thisHost "]

関連ラベル:
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート