Falsy const check = (elm) => { if(elm) console.log("true"); else console.log("false"); } console.log(check(undefined)); //false console.log(check(null)); //false console.log(check(0)); //false console.log(check('')); //false console.log(check(NaN)); //false 알아두어야 하는점 const getPerson = (person)=> { if(!person){ return '객체가 아닙니다.' } return person.name; } let person = {name : "에스파니아"}; console.log(..
JSON JavaScript Object Notation, 클라이언트와 서버 사이에서 사용하는 데이터 형식 JSON.strigify(value[, replacer, [space]]) value : JSON 문자열로 변환할 값 replacer : 객체의 속성들은 선택하기 위한 함수 또는 배열 (null 일 경우, 모두 선택) space : 공백(1~10) 예제 console.log(JSON.stringify(user)); console.log(JSON.stringify(user, function(key, value){ if(typeof value === 'string'){ return undefined; }else{ return value; } })) console.log(JSON.stringify(use..
JavaScript로 개발하기 위해선 아래 프로젝트를 이용하여 개발 https://github.com/sculove/QWebview-plus GitHub - sculove/QWebview-plus: QWebview supports Kiwoom Open API+ for JavaScript QWebview supports Kiwoom Open API+ for JavaScript. Contribute to sculove/QWebview-plus development by creating an account on GitHub. github.com 감사합니다.
caniuse.com/?search=script%20defer