Ajax는 비동기 자바스크립트와 xml을 말하며페이지 이동 및 새로고침 없이 특정 부분만 업데이트가 가능합니다. $.ajax({"url" : "접속할 주소","type" : "get/post","data" : "파라미터 값","dataType" : "text/xml/json/jsonp","timeout" : "제한시간 밀리세컨드","cache" : "true/false","success" : function(data) {//성공시 처리내용},"error" : function(xhr, textStatus, errorThrown) {//실패시 처리내용}}); data의 파라미터 값은data: "key1=value&key2=value....." 방식이 기본이고 JSON형식으로도 구성이 가능합니다.data: {..
목차: 가 목차: 나
클릭해보세요.
전송
Insert title here document.write("브라우저 코드명: " + navigator.appCodeName); document.write(""); document.write("브라우저 이름: " + navigator.appName); document.write(""); document.write("브라우저 버전: " + navigator.appVersion); document.write(""); document.write("브라우저 쿠키 사용여부: " + navigator.cookieEnabled); document.write(""); document.write("브라우저 사용자 위치: " + navigator.geolocation); ..
구문은 window.open(URL, name, specs, replace) 형태 URL: 새창의 주소name: 창이름을 지정 지정하지 않으면 클릭 할 때마다 새로운 창이 생성됩니다.specs: 옵션을 설정 창의 크기나 스크롤바,툴바 등 옵션을 설정합니다.replace: true일 땐 새 문서가 이전의 문서와 교체 false이거나 지정되지 않으면 새 문서는 창의 브라우징 히스토리에 새 항목으로 추가됨name과 specs 옵션에대한 정보는 https://www.w3schools.com/jsref/met_win_open.asp 확인하세요. 창을 닫는 구문은 window.close(); or self.close();
Insert title here /* protoytpe 기반 언어 객체 생성 과정 빈 객체를 생성 > 변수, 함수 추가 */ //빈 객체 생성 var student = {}; //변수 추가 student.no = 1; student.name = "홍길동"; student.grade = "2학년"; student.score1 = 80; student.score2 = 90; //점수 수정 함수 student.setScore = function(x, y) { /* 객체 안에 포함된 메서드에서 다른 메서드를 호출하거나 프로퍼티를 활용하고자 하는경우 this키워드를 이용 */ this.score1 = x; ..