web developer👩🏻‍💻

  • 홈
  • 태그
  • 방명록

var self = this; 1

[jQuery] img 태그 클릭시 새창 팝업 띄우기

image.jsp $img = $(''); $img.on('click',function(){ //window.open(this.src); var self = this; $.ajax({ url:"../html/popupImage.html", }).done(function(result){ result = result.replace("\"src\"",self.src) result = result.replace("", ""+self.alt+"") var wnd = window.open(""); wnd.document.write(result); }); }); var self = this; self 대신 this를 사용하여 현재 객체를 참조 popupImage.html CSS Image Gallery CSS Ima..

js 2021.04.27
이전
1
다음
프로필사진

web developer👩🏻‍💻

  • Category (192)
    • Spring (31)
      • Spring Boot (2)
    • js (64)
    • DB (24)
    • multi (7)
    • css (7)
    • 형상관리 (6)
    • 정보처리기사 (1)
    • Tistory (5)
    • Basic (14)
    • iOS (24)
    • Error (5)

Tag

윈도우심볼릭, xlsx-streamer, ios app 개발, xcode swift memo, MSsql, swift 계산기, mysql, PostgreSQL, jxls 엑셀, Oracle, monitorjbl 엑셀, monitorjbl, spring annotation, 윈도우심볼릭링크걸기, swift 메모장 만들기, Xcode, poi monitorjbl, Swift, xcode12.5.1, jxls,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

  2025. 07  
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.