본문 바로가기

FrontEnd/HTML3

HTML meta 요소는 무엇일까? https://www.w3schools.com/html/html_head.asp HTML head Elements HTML - The Head Element The HTML element is a container for the following elements: , , , , , and . The HTML Element The element is a container for metadata (data about data) and is placed between the tag and the tag. HTML metadata is data about the HTML d www.w3schools.com The HTML Element HTML 요소 The element is typically used to s.. 2021. 6. 29.
server-sent event(SSE) 서버에서 클라이언트로 이벤트 보내기 같은 회사 직원이 카카오 코딩테스트에서 봤던 문제 중에 서버단에서 대용량 엑셀에 대한 처리를 할 때 현재 진행률을 클라이언트단에서 보여주는 방법을 구현하라는 문제가 있었다고 한다. 웹소켓이나 뭔가 다양한 방법들이 있겠지만, SSE가 HTML5 표준 권고안이라고 하니 이 방식을 따르는 것이 표준일 것 같다. 서버에서 보내는 이벤트를 관리하는 표준적인 방법. 스트림 이벤트를 서버에서 프론트 엔드로 보낸다. 일방향 접속이며, 클라이언트에서 서버로 이벤트를 보내지는 못한다. 실제 사용방법은 아래 링크 참조 https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events Using server-sent event.. 2021. 6. 17.
Location href 와 Location replace() Method href 는 속성이고 , replace() 는 함수이다. The replace() method replaces the current document with a new one. replace() 메소드는 현재 문서를 새로운 것으로 대체시킨다. The difference between this method and assign(), is that replace() removes the URL of the current document from the document history, meaning that it is not possible to use the "back" button to navigate back to the original document. 이 메소드와 assign() 메소드의 차이점은, r.. 2021. 6. 15.