Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Equivalent function to jQuery.param

License

NotificationsYou must be signed in to change notification settings

knowledgecode/jquery-param

Repository files navigation

CInpm

Features

  • Equivalent to jQuery.param (based on jQuery 3.x)
  • No dependencies
  • Universal (Isomorphic)
  • ES Modules Support

Installation

via npm:

npm i jquery-param

Usage

importparamfrom'jquery-param';constobj={key1:{value1:[10,20,30]},key2:'?a=b&c=d'};conststr=param(obj);// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"

CommonJS:

constparam=require('jquery-param');constobj={key1:{value1:[10,20,30]},key2:'?a=b&c=d'};conststr=param(obj);// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"

ES Modules (Browser):

<scripttype="module">importparamfrom'/path/to/jquery-param.js';constobj={key1:{value1:[10,20,30]},key2:'?a=b&c=d'};conststr=param(obj);// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"</script>

Traditional (Browser):

<scriptsrc="/path/to/jquery-param.js"><script>var obj ={key1:{value1:[10,20,30]},key2:'?a=b&c=d'};var str = window.param(obj);// =>"key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"</script>

Browser Support

Chrome, Firefox, Safari, Edge, and IE9+.

License

MIT

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp