BIG

jQuery URL 파라미터 문자열 생성 함수 샘플

 

/**
	@ jQuery 기반
	@ GET parameters (also called URL parameters or query strings)
	  생성 함수
*/
function makeGetParamsString()
{
	let params		=	"";
	let arr_obj_ids =   new Array(
		"[INPUT OBJECT ID 1]"
		,"[INPUT OBJECT ID 2]"
		,"[INPUT OBJECT ID 3]"
	);

	let valTemp =   null;
	for(let loopCnt=0; arr_Filters.length>loopCnt; loopCnt++)
	{
		valTemp =   null;
		valTemp =   jQuery("#" + arr_Filters[loopCnt]).val();
		if( valTemp.length > 0 )
		{
			params  +=  arr_Filters[loopCnt]+ "=" + valTemp;
			params  +=  "&";
		}// end if
	}// end for
	
	params  =   params.substring(0, ( params.length-1 ) );

	return params
}
LIST