본문 바로가기

Server2

02Feb2020 TIL Express를 사용하지 않고, Node.js 를 사용하여 간단한 서버 구축하기 window.location : 현재 나의 위치 정보를 알 수 있다. 예시)) https://monkeyworld.com/search?keyword=monkey window.location.path => "/search" window.location.search => "?keyword=monkey" 응용 : keyword의 값인 monkey 추출하기 1. 우선 npm의 querystring 모듈을 가져온다. const querystring = require('querystring'); 2. querystring의 .parse() method를 활용하여 keyword의 값을 찾아준다. let search = location.s.. 2020. 2. 3.
15Jan2010 TIL Browser A web browser (commonly referred to as a browser) is a software application for accessing information on the World Wide Web. When a user requests a particular website, the web browser retrieves the necessary content from a web server and then displays the resulting web page on the user's device. (출처 : Wikipedia) 이 위키피디아의 두 문장이 브라우저의 정의와 핵심 기능을 소개한 문장이라고 생각한다. 웹 브라우저는 소프트웨어 웹 어플리케이션으로서WWW.. 2020. 1. 16.