Javascript & JQuery & CSS > param() - ¹®ÀÚ¿ ¸Å°³º¯¼ö¸¦ Äõ¸®½ºÆ®¸µÀ¸·Î º¯°æ
µî·ÏÀÏ : 2017-07-13 19:57
Á¶È¸¼ö : 53,162
¹®ÀÚ¿ ¸Å°³º¯¼ö¸¦ Äõ¸®½ºÆ®¸µÀ¸·Î º¯°æÇÏ´Â ¹æ¹ý¿¡ ´ëÇؼ ¾Ë¾Æº¸ÀÚ
var obj = new Object();
obj.id = 'cak0280';
obj.password = '#pw';
obj.idStore = 'on';
$('body').append( obj.id + " : "+ obj.password + " : " + obj.idStore );
var str = $.param(obj); // Ä÷º¼Ç ÇüÅÂÀÇ ¹®ÀÚ¿ ¹è¿À» Äõ¸®½ºÆ®¸µ(QueryString)À¸·Î º¯°æ
$('body').append( str );
°á°ú°ª
---------------------------------------------------
cak0280 : #pw : on
id=cak0280&password=%23pw&idStore=on