1. URL Parser

        聯(lián)合創(chuàng)作 · 2023-10-02 14:50

        Parses URLs and provides easy access to information within them, such as the protocol, host, port, the segments that make up the path and the various query string values. The parser is based on the Regex URI parser by Stephen Levithian - http://blog.stevenlevithan.com/archives/parseuri.

        // Get the domain name (host) from the current page URI
        jQuery.uri.attr("host");

        // Get the query string value for 'item' for the current page
        jQuery.uri.param("item");

        // Get the second segment of the URI of the current page
        jQuery.uri.segment(2);

        // Get the protocol of a manually passed in URL
        jQuery.uri.setUri("http://allmarkedup.com/").attr("protocol") // returns 'http'
        瀏覽 20
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
          
          

            1. 久久人人妻人人做人人玩精品 | 2023国产精品视频 | 少妇荡乳情欲办公室激情视频 | 人人爽久久涩噜噜噜小说 | 99热9 |