BIG
try{
let objCheckValues = new Object();
objCheckValues.supply_a03_pk = value1;
objCheckValues.targetUrl = value2;
console.log( objCheckValues );
console.log( Object.entries(objCheckValues) );
Object.entries(objCheckValues).forEach(
function(Param){
console.log( Param[0] );
console.log( Param[1] );
console.log( "---------------------------------" );
if( Param[1] == undefined )
{
throw new SyntaxError( Param[0] + " is undefined" );
}// end if
}
)// end forEach
let json_params = JSON.stringify( objCheckValues );
console.log( "json_params ::: " + json_params );
}catch (err) {
alert(err.message);
console.log( err.message );
}// end try
LIST
'!!...JS-HTML' 카테고리의 다른 글
[javascript] month picker sample code (0) | 2023.10.30 |
---|---|
[javascript] jQuery Detect textarea tag height and change sample (0) | 2023.08.26 |
[javascript] array to json SAMPLE CODE (0) | 2023.07.25 |
[javascript] jQuery 첨부파일 용량검사 SAMPLE CODE (0) | 2023.07.12 |
[HTML] Div 를 이용하여 Table Grid 만들기 - SAMPLE CODE (0) | 2023.06.16 |