전체 글(51)
-
swal 사용방법
CDN 붙여넣기 간단하게 사용 swal("텍스트"); 옵션 넣기 swal({ text : "텍스트", closeOnClickOutside : false // 백그라운드 클릭해도 안꺼짐 }) .then(function(result){ // 창 꺼질때 실행할 함수 console.log(result); // background 클릭 => null // 확인버튼 클릭 => true if(result) { location.href = "/"; } }) confirm창 swal({ text : "텍스트", buttons: ["취소" , "이동"] }) .then(function(result){ console.log(result); if(result){ location.href = "/"; } })
2021.11.24 -
선택된 input[type="radio"] 값 가져오기
1번 2번
2021.11.24 -
웹 소켓 기본
웹 소켓 핸들러 @Service public class WebSocketHandler extends TextWebSocketHandler { //List list = new ArrayList(); List admins = new ArrayList(); @Override public void afterConnectionEstablished(WebSocketSession session) throws Exception { System.out.println("연결됨 = " + session); //list.add(session); if(getId(session) != null) { admins.add(session); } } @Override protected void handleTextMessage(WebSo..
2021.11.10