일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- error
- java
- Deep
- interface
- data
- Python
- Linux
- Github
- LIST
- DeepLearning
- Server
- javascript
- Security
- Spring
- mysql
- learning
- Numpy
- mariaDB
- Analysis
- ai
- git
- centos
- Pattern
- 인공지능
- SSH
- db
- Web
- 함수
- framework
- 자바
- Today
- Total
목록javascript (16)
PostIT
Javascript의 Some이란?JavaScript를 사용하여 과제 중 Some을 통해 어려움을 해결할 수 있었습니다. forEach를 사용하면 list 안의 유효성 검사를 하고 문제가 생길 시 return하는 부분에 대한 불완전성이 있었습니다. 하지만, Array의 Some을 사용하여 이를 해결할 수 있었습니다.과제의 내용은 react와 비슷한 mithril 과제였습니다. 참고자료는 Mithril JS Example 에서 보실 수 있습니다.Some이란?배열의 모든 요소에 대해 지정된 콜백 함수가 true를 반환하는지 여부를 결정합니다.설명callbackfn 함수가 true를 반환할 때까지 some 메서드는 각 배열 요소에 대해 오름차순 인덱스 순서로 callbackfn 함수를 호출합니다. callba..
Vue Study In Incheon - Day 1.Author : SeolHunIDE : SublimeText3 or WebstormVersion : Vue 2.5.3Started Date : 2017.11.09To do ListPresentationBuild Example & ExplanationComputed Properties and WatchersClass and Style BindingsConditional RenderingList RenderingEvent HandlingForm Input BindingsProjectBuild To do list using Local Storage.To do List(Read, Write, Update, Delete)Vue Summary with exampl..
# [HTML/JavaScript] Html의 이벤트 종류들## 1. 목적Javascript의 Module Pattern을 사용하여 해당 스크립트를 재사용 할 수 있는 장점이 있으며, 다른 소스와 섞이지 않고, 해당 모듈을 통해서 완전한 기능을 제공 할 수 있다. 하지만, 모듈 패턴을 적용하여 구성하면, HTML의 이벤트 코드를 통해 스크립트를 작동시키는게 많아진다. 이를 위해서는 해당 HTML Tag에 제공되는 이벤트에 대한 지식이 필요하다. 이를 위해 정리하였다.## 2. 내용이벤트발생onabort이미지 로딩에서 이탈하였을 때(다른 연결로 이동)onactivate개체의 activeElement 속성을 설정하였을 때onafterprint관련된 문서를 인쇄하거나 인쇄 미리보기를 후 즉시onbeforeac..
# URI, Protocol, HOST Javascript에서 값 가져오기. window.location.protocol Return) http: window.location.host Return) localhost:8080 window.location.pathname Return) /projectName/currentPath
Object.create(); Object.create = function(o){function F(){}F.prototype = o;return new F();} 익스플로러 9버전 이후부터 지원 new 키워드를 사용할 떄와는 달리 전체적으로 소스의 생성자의 개념이 약해지고, 객체의 인스턴스 간의 상속을 강조하는 것. var person = {yell : function (){alert(“My Name is “ + this.name);}}; var example = Object.create(person);example.name=“Hooney”;example.yell(); // ===“My Name is Hooney” console.log(example instances person); // ===Type..
[Javascript] event.keyCode 코드값https://blog.lael.be/post/75 Key Code Reference Table01020Caps Lock3040Arrow Down111213141212223242313Enter2333Page Up434142434Page Down445152535End45Insert616Shift2636Home46Delete717Ctrl27Esc37Arrow Left478Backspace18Alt2838Arrow Up4809Tab19Pause/Break2939Arrow Right4915026070f80p90z51361=+71g81q91Windows5246272h82r925356373i83s93Right Click5466474j84t9455765a75k85..
* JavaScript에 관련된 질문을 직접 찾아가기 위함. http://unikys.tistory.com/291 속 깊은 자바스크립트의 책을 읽으면서, 현재 자신의 코드를 되돌아 보게 되었다.특히 클로저와 스코프에 대한 개념없이 접근하다보니 책에 말한 문제점들이, 내게 상당부분 해당하였다.글로벌 변수 선언과 클로저를 통한 지역변수화, 그리고 변수에 대한 속성들 등 다양한 부분들을 내게 가르침을 주는 부분들이었다.그리고 찾아보니 블로그에서 이런 질문을 하셨더라. 그래서 직접 찾아볼까 하고 적어본다. 자바스크립트를 잘알고 있다면 알고 있어야할 간단한 질문들을 몇 개 정리해보았다. 자바스크립트를 잘 알고 있다면 너무너무나 쉬운 질문들일 것이다. 자바스크립트의 scope는?(function() { /* 어쩌고..
jQuery로 Array 안에있는 값을 찾아 지워주기 var binding= new Array(); binding.push(1); binding.push(2); binding.push(3); console.log("Before binding cancel : "+binding); //Before binding cancel : 1,2,3 binding.splice($.inArray(1, binding),1); console.log("After binding cancel : "+binding); //After binding cancel : 2, 3
# jQuery에서 Append & Remove 처리하기. var html=""; html= "" + ""+item.surveyId+"" + ""+item.surveyName+"" + "취소" + ""; 1.Prepend$("#surveyBindingDiv").prepend(html);//surveyBindingDiv에 자식노드로 맨 위에 들어간다. 2.Append$("#surveyBindingDiv").append(html);//surveyBindingDiv에 자식노드로 맨 아래 들어간다. 3.Remove $("#surveyIdDiv"+surveyId).remove();//#(id)값의 태그를 찾아서 지워준다.
# JavaScript에서 배열 혹은 스트링 안에 우리가 원하는 값의 존재여부 확인 1. includes var str="Hello JavaScript"; console.log("str.includes('Java') : "+str.includes('Java')); //str.includes("Java") : true console.log("str.includes('java') : "+str.includes('java')); //str.includes('java') : false var binding=new Array(); binding.push(item.surveyId); //item.surveyId : 1 console.log("binding.includes(item.surveyId) : "+bindi..