<noscript id="eassg"><table id="eassg"></table></noscript>
  • <strike id="eassg"><s id="eassg"></s></strike>
  • <ul id="eassg"></ul>
    注冊(cè)|登錄

    聯(lián)系電話:024-31891684  13390130939
    日志

    沈陽(yáng)軟件開(kāi)發(fā)_沈陽(yáng)軟件公司_沈陽(yáng)軟件定制/軟件/日志

    Log日志

    js獲取當(dāng)前Url網(wǎng)址路徑及參數(shù)

    瀏覽量:2069

    http://localhost:81/Test/1.htm?Did=123
    <br>以下為輸出:
    <br>
    <SCRIPT>
    //獲取Url傳過(guò)來(lái)的值
    function Request(name)
    {
         new RegExp("(^|&)"+name+"=([^&]*)").exec(window.location.search.substr(1));
         return RegExp.$2
    }

    thisURL = document.URL;     // http://localhost:81/Test/1.htm?Did=123
    thisHREF = document.location.href; // http://localhost:81/Test/1.htm?Did=123
    thisSLoc = self.location.href;   // http://localhost:81/Test/1.htm?Did=123
    thisDLoc = document.location;   // http://localhost:81/Test/1.htm?Did=123

    thisTLoc = top.location.href;   // http://localhost:81/Test/1.htm?Did=123
    thisPLoc = parent.document.location;// http://localhost:81/Test/1.htm?Did=123
    thisTHost = top.location.hostname; // localhost
    thisHost = location.hostname;   // localhost

    thisU1 = window.location.protocol; // http:
    thisU2 = window.location.host;   // localhost:81
    thisU3 = window.location.pathname; // /Test/1.htm

    document.writeln( thisURL + "<br />"); 
    document.writeln( thisHREF + "<br />"); 
    document.writeln( thisSLoc + "<br />"); 
    document.writeln( thisDLoc + "<br />");

    document.writeln( thisTLoc + "<br />"); 
    document.writeln( thisPLoc + "<br />"); 
    document.writeln( thisTHost + "<br />"); 
    document.writeln( thisHost + "<br />");

    document.writeln( thisU1 + "<br />"); 
    document.writeln( thisU2 + "<br />"); 
    document.writeln( thisU3 + "<br />");

    document.writeln( "Did="+Request("Did") );// Did=123 
    </SCRIPT>

     

    沈陽(yáng)團(tuán)購(gòu)網(wǎng)|營(yíng)口網(wǎng)站制作|沈陽(yáng)軟件公司|軟件定制|網(wǎng)站建設(shè)|加盟易勢(shì)|提交問(wèn)題

    美女免费精品高清毛片在线视 | 久久se精品一区二区国产| 尤物TV国产精品看片在线| 国产尤物在线视精品在亚洲| 日韩精品成人无码专区免费| 国产精品视频免费| 麻豆国产精品无码视频| 99久久人妻精品免费一区| 久久久久久久国产精品电影| 国产亚洲精品精华液| 最新国产成人精品2024| 久久久精品无码专区不卡| 国产精品电影在线| 亚洲国产精品无码久久青草| 一本一道久久a久久精品综合| 日韩精品无码免费视频| 大桥未久在线精品视频在线 | 久久精品无码一区二区WWW| 99re九精品视频在线视频| 色妞ww精品视频7777| 亚洲AV日韩精品久久久久久| 国产精品免费一区二区三区四区| 精品四虎免费观看国产高清午夜 | 精品国产福利在线观看一区| 国产欧美精品123区发布| 热RE99久久精品国产66热| 亚洲AV无码成人精品区狼人影院| 国产精品自在自线视频| 国产精品一区视频| 国产精品自在在线午夜| 国产精品亚洲AV三区| 色婷婷99综合久久久精品| 国内成人精品亚洲日本语音| 国产精品无码一区二区三区在 | 久久久久国产精品三级网| 久热这里只有精品99国产6| 久久中文精品无码中文字幕| 在线观看亚洲精品福利片| 国产午夜福利精品一区二区三区| 亚洲国产另类久久久精品小说| 久久久久夜夜夜精品国产|