Skip to content

获取 URL 中 param 参数小程序,npm 发布的测试小功能

License

Notifications You must be signed in to change notification settings

cy6erskunk/get-url-param

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-url-param

Install

Install with npm:

$ npm install get-url-param --save

<script />

You can simply include get-url-param like this:

<script src='[path of index.js]'></script>

Usage

var getURLParam=require("get-url-param");
var url="http://www.baidu.com/s=?ie=UTF-8&wd=mustache";
console.log(gurlp.getURLParam(url,"ie"));//UTF-8
console.log(gurlp.getURLParam(url,"noexist"));//null

License

MIT

About

获取 URL 中 param 参数小程序,npm 发布的测试小功能

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%