js,typeScript,node
-
PWA (웹앱) 만들기. (프로그레시브 웹앱) 소개js,typeScript,node 2025. 7. 2. 17:05
PWA (웹앱) 만들기. (프로그레시브 웹앱) 소개 간단히 말하면 웹의 리소스로 앱을 만들수있다.브라우저에서열립니다.app의 아이콘을 추가해 앱 처럼 동작가능합니다.모던 바닐라 js 보다 많은 제어권한을 갖고있습니다.PWA 특징웹 + 앱 통일된소스 관리가능ServiceWorker API 로 강력한제어권한과 manifest 로 앱 구성더보기 // manifest.json{ "name": "MenuMaker", "short_name": "MenuMaker", "description": "hello webapp menu maker.", "icons": [ { "src": "source/static/img/testfa.icon.png", "sizes": "48x48", "..
-
js 예외처리함수 만들기js,typeScript,node 2024. 3. 22. 11:08
/** * 예외처리하는 함수 실패시에만 로그를 저장 * * @param {function} targetCallback * @example exceptionCheck(()=>실행하고싶은함수(매개변수)) * */function exceptionCheck(targetCallback){ let targetName = targetCallback; try { targetCallback(); } catch (error) { console.log("error", `${targetName}.000`, "test", error); let eM = (error.name + error.message + error.stack); saveLog("error"..