Vscode+eslink settings.json 설정 Vscode+eslink 설정 후 settings.json은 아래와 같이 설정 { "files.autoSave": "onFocusChange", "editor.codeActionsOnSave": { "source.fixAll": true }, "editor.formatOnSave": true, "eslint.alwaysShowStatus": true, "eslint.format.enable": true } Javascript/Vue 2021.03.20
vscode ..potentially fixable with the `--fix` option. 오류 Vscode 에디터로 vue cli 개발시 .vue 파일을 수정을 할때 마다 아래와 같은 오류가 발생한다. # 해결방법 Vscode 툴에서 하단 툴 ESLINT 클릭해서 사용으로 바꿔주면 해결 1. ESLINK 클릭 2. Allow 클릭 3.아래와 같이 나오면 성공 Javascript/Vue 2021.03.20
jquery 브라우저 리사이즈 완료 이벤트 jquery 브라우저 리사이즈 완료 이벤트 //화면 조절 후 이벤트 완료될때 처리 $(window).resize(function() { clearTimeout(window.resizedFinished); window.resizedFinished = setTimeout(function(){ console.log("화면 리사이즈 후 이벤트 완료 처리") }, 250); }); Javascript/Jquery 2021.02.23
input keyup 시 한글이 v-model 값이 짤리는 문제 Vue개발하다 보면 한글이 v-model 바인드시 짤리는 문제가 있었다.. 인터넷을 찾아 아래와 같이 해결 methods: { ,schName: function(e){ this.name= e.target.value; }); } Javascript/Vue 2021.02.19
Custom elements in iteration require 'v-bind:key' directives. 오류 처리 vue 리스트 처리하다 {{index}} {{item.member}} Custom elements in iteration require 'v-bind:key' directives 발생하면 아래와 같이 처리 :key="index" 추가 {{index}} {{item.member}} Javascript/Vue 2021.02.05
특정 문자열만 입력하느 jquery plugin [1] 특정 문자열만 입력되는 jquery plugin $.fn.formatKey = function(mode){ $(this).css({"ime-mode":"disabled"}); this.each(function(){ $(this).keyup(function(e){ if (window.event) { key = window.event.keyCode; } else if (e) { key = e.which; } else { return true; } keychar = String.fromCharCode(key); if (key == null) return true; switch(mode){ case 'alpha-upper': return /[^A-Z]+$/.test(keychar)? false : tru.. Javascript/Jquery 2019.02.25