코드
2019.11.16 18:39

[JS] 클라이언트단 GET Parameter

조회 수 550 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
라이선스 기타(따로 작성)

옛날에 만들어둔거긴 한데, 공유할까해서 공유해봅니다.


License: WTFPL

window.queryString = function() {
    var QueryObject = {};
    var k = window.location.search;
    const params = k.substring(1,k.length).split("&");
    for (var i = 0; i < params.length; i++) {
        QueryObject[params[i].split("=")[0]] = params[i].split("=")[1];
    };
    return QueryObject;
}

Module 호환 (이건 방금만든거)

!function(e,n) {
    "object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = e || self, function () {
        var t = e.queryString
            , o = e.queryString = n();
    }())
}(this,function() {
    "use strict";

    function e() {
        if (typeof window != "undefined") {
            var t = {};
            var o = n(window.location.search);
            for (var i = 0; i < o.length; i++) {
                var c = o[i].split("=");
                t[c[0]] = c[1];
            };
            return t;
        }
    }
    function n(e) {
        return e.substring(1,e.length).split("&");
    }
    return e;
})





  1. AWSCLI, in a single file (portable, linux)

    Date2021.04.10 Category코드 BySeia Views269
    Read More
  2. 도박 중독자를 위한 광고 차단 규칙

    Date2020.08.21 Category코드 By제르엘 Views404
    Read More
  3. 내가 만든 함수 모음집

    Date2018.05.08 Category코드 Bytitle: 대한민국 국기gimmepoint Views416
    Read More
  4. 미완성 받아쓰기 (C)

    Date2018.04.20 Category코드 Bytitle: 대한민국 국기gimmepoint Views453
    Read More
  5. C언어 삼중자를 이용한 코드

    Date2018.07.22 Category코드 Bytitle: 황금 서버 (30일)humit Views461
    Read More
  6. 내가 만든 함수 모음집 2

    Date2018.05.12 Category코드 Bytitle: 대한민국 국기gimmepoint Views465
    Read More
  7. Koa에서 자동으로 라우팅 채워주기

    Date2020.01.22 Category코드 BySeia Views502
    Read More
  8. 내가 만든 merge sort

    Date2018.05.17 Bytitle: 대한민국 국기gimmepoint Views504
    Read More
  9. JavaScript에서 파이썬 문자열 처리 함수 중 하나 (바인딩)를 구현

    Date2020.01.20 Category코드 BySeia Views508
    Read More
  10. 아주 간단한 기초 C++

    Date2018.04.21 Category코드 By제르엘 Views531
    Read More
  11. 파이선 셸에서 실행하면...?

    Date2018.07.22 Category코드 By제르엘 Views531
    Read More
  12. [JS] 클라이언트단 GET Parameter

    Date2019.11.16 Category코드 ByHanam09 Views550
    Read More
  13. 링크 파싱 애드온용 스킨 (트위터 스타일)

    Date2017.10.03 Category자료 BySNAX Views562
    Read More
  14. c 이진트리 전,중,후위 알고리즘

    Date2018.04.24 Category코드 Bytitle: 대한민국 국기gimmepoint Views590
    Read More
  15. 내가 만든 사칙연산 계산기

    Date2018.05.11 Category코드 Bytitle: 대한민국 국기gimmepoint Views597
    Read More
  16. [Python] 모 정부기관 사이트 파싱 후 PC 통신처럼 열람하고 싶은 게시글 번호를 입력하면 내용을 보여주는 소스 (허접)

    Date2018.09.14 Category코드 By이니스프리 Views599
    Read More
  17. HEX를 RGB로, RGB를 HEX로 바꾸는 PHP 코드

    Date2018.05.05 Category코드 By네모 Views616
    Read More
  18. Hello, World!를 출력해보자

    Date2018.04.21 Category코드 By네모 Views623
    Read More
  19. 매우 특이한 버그

    Date2018.06.05 Category코드 Bytitle: 대한민국 국기gimmepoint Views640
    Read More
  20. [PHP] 간단한 캐싱 클래스

    Date2018.12.06 Category코드 Bytitle: 황금 서버 (30일)humit Views640
    Read More
Board Pagination Prev 1 2 3 4 Next
/ 4