• UParams


    Parse URL parameters whatever hash or queryString.

    Usage

    var params = new UParams('http://xxx/xxx?a=1&b=2#c=3&d=4');
    // The same to
    // var params = new UParams({ a: 1, b: 2, c: 3, d: 4 });
    
    // NOTE: Always string
    params.a === '1';
    params.b === '2';
    params.c === '3';
    params.d === '4';
    
    // Convert to a QueryString
    params.toString() === 'a=1&b=2&c=3&d=4';
     

    You can load UParams with UMD

    require(['UParams'], UParams => {
      // DO SOMETHING
    });
    

    Run Testing Case

    cd tests
    bower install
    cd ..
    python -m SimpleHTTPServer &
    open http://127.0.0.1:8000/tests
    漫思
  • 相关阅读:
    es删除索引
    真人快打11技能键位
    点到线段的距离
    行列快乐值
    按钮变色
    取数求和
    机器分配
    田忌赛马 问题
    雷达
    最小字典序
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/15008667.html
Copyright © 2020-2023  润新知