make-url:根据属性制作网址

时间:2021-06-14 16:06:56
【文件属性】:
文件名称:make-url:根据属性制作网址
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-14 16:06:56
JavaScript 网址 根据属性制作 url 查看示例 安装 $ npm install --save make-url 用法 var makeUrl = require ( 'make-url' ) ; // only params makeUrl ( '/example/:foo/:bar' , { foo : 'one' , bar : 'two' } ) //=> /example/one/two // params and query makeUrl ( '/example/:foo/:bar' , { foo : 'one' , bar : 'two' } , { time : 'stop' } ) //=> /example/one/two?time=stop // params as arguments makeUrl ( '/example/:foo/:bar' , 'one' , '
【文件预览】:
make-url-master
----.jshintrc(184B)
----.gitattributes(12B)
----test.js(925B)
----.travis.yml(61B)
----LICENSE(1KB)
----README.md(859B)
----.editorconfig(225B)
----.gitignore(13B)
----index.js(1KB)
----package.json(528B)

网友评论