728x90 반응형 전체 글303 JavaScript] DOM tree 출처 : https://javascript.info/dom-nodes HTML document의 뼈대는 tags이다. Document Object Model (DOM)에 따르면, 모든 HTML tag는 object이다. enclosing tag에 포함된 tags는 children이다. tag 내부의 text 또한 object이다. 이러한 모든 objects는 JavaScript를 통해서 접근이 가능하며, 이를 활용해 page를 수정할 수 있다. 예를들어 document.body는 tag를 나타내는 object이다. 아래 코드를 실행하면 3초간 red로 변경할 수 있다. document.body.style.background = 'red'; // make the background red setTimeou.. 2022. 11. 3. JavaScript] Browser environment, DOM, BOM 출처 : https://javascript.info/browser-environment Browser environment, specs JavaScript는 처음에 웹 브라우저를 위해 만들어졌다. 따라서 많은 활용과 플랫폼과 함께 발전하였다. browser, web-server, 또다른 host와 같은 platform이다. 각각은 특화된 platform 기능을 제공한다. 이것을 host environment라고 칭한다. host environment는 language core뿐만 아니라 자신의 objects, function을 제공한다. 아래는 web browser에서 JavaScript가 실행될때 갖는 것들의 조감도이다. window라 불리는 root object가 있다. 2가지 역할이 있다. Java.. 2022. 11. 3. Git의 원리] 8. git tag 원리 tag를 생성할 때, git내부적으로 tag가 어떻게 관리되는지 확인해보자. # git 초기화한다. $ git init Initialized empty Git repository in C:/Project/git_test/.git/ # commit을 생성한다. $ vim f1.txt $ git add f1.txt warning: LF will be replaced by CRLF in f1.txt. The file will have its original line endings in your working directory $ git commit -m 1 [master (root-commit) d15d55a] 1 1 file changed, 1 insertion(+) create mode 100644 f1... 2022. 9. 8. Git의 원리] 7. git tag 기본 사용법 특정 commit에 tag(어떤 것으로든 지정할 수 있지만, 주로 배포 버전)를 지정하여 관리할 수 있는 기능이다. tag에는 Annotated Tag와 Lightweight Tag가 있다. git 초기화한다. $ git init Initialized empty Git repository in C:/Project/git_test/.git/ 파일을 생성하고 저장하여 commit한다. $ vim f1.txt $ git add f1.txt warning: LF will be replaced by CRLF in f1.txt. The file will have its original line endings in your working directory $ git commit -m 1 [master (root-co.. 2022. 9. 8. Git의 원리] 6. git remote, origin, push $ git init Initialized empty Git repository in C:/Project/git_test/.git/ git 초기화를 하면 생성되는 .git파일의 config파일을 확인해보자. [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true f1.txt파일을 생성해서 저장 commit하고, git remote add [원격저장소] [remote repository url] 명령어를 통해서 원격저장소를 연결하고 원격저장소 이름과, url을 지정한다. $ vim f1.txt $ git add f1.txt warning: LF.. 2022. 9. 7. Git의 원리] 5. git merge, conflict (TortoiseGit) 2개의 branch에서 동일한 파일을 수정한 다음, merge 하는 경우 git은 자동 merge를 할 수 없어서 conflict를 발생시킨다. 이때 어떻게 conflict를 처리할 수 있는지 알아보자. # git_test directory를 git 초기화한다. $ git init Initialized empty Git repository in C:/Project/git_test/.git/ # f1.txt파일을 생성하고 간단한 소스를 입력하고 저장한다. $ vim f1.txt # f1.txt파일을 add하고 commit한다. $ git add f1.txt warning: LF will be replaced by CRLF in f1.txt. The file will have its original line.. 2022. 9. 6. 이전 1 ··· 23 24 25 26 27 28 29 ··· 51 다음 728x90 반응형