반응형

WEB/JavaScript 57

[자바스크립트] ECMAScript 6 둘러보기 [자바스크립트 클래스 가능] java script (현재버전은[2015년도중반]ECMAScript 5 대부분지정되어 있음) 관련

ECMAScript 6 기능구현 확인을 위한 파이어폭스 39 이상 테스트 버전 받기Related Posts:Mozilla Firefox 41 Alpha 1Mozilla Firefox 40.0 Alpha 2 “Aurora”Mozilla Firefox 35.0.1Mozilla Firefox 37.0.2Mozilla Firefox 36.0.4Mozilla Firefox 38.0.6Mozilla Firefox 29.0.1Mozilla Firefox 28.0Mozilla Firefox 34.0.5Mozilla Firefox 27.0.1 크롬 높은 버전(42이상 예상) 에서 자바스크립트 Class를 사용 하고 싶으시면 현재는 "use strict"; 일 사용해야 합니다. (다른 상위버전 브라우져도 써야 할..

WEB/JavaScript 2020.09.23

자바 플러그인 (JRE) 설치 여부 체크하는 코드

//----------------------//----------------------//---------------------- //----------------------//----------------------//---------------------- * 코드 설명 var browseratt = navigator.userAgent.toLowerCase(); var browsertype = "other"; if(browseratt.indexOf('msie') != -1 || browseratt.indexOf('trident') != -1) browsertype = "Microsoft" - 브라우져타입을 결정한다. 'msie','trident' 글자가 포함하면 MS의 브라우져로 판별(익스플..

WEB/JavaScript 2020.09.22

html 스크립트 자바 스크립트 파일 이벤트, onchange 이벤트 관련

=====================================================================     출처: http://stackoverflow.com/questions/3528359/html-input-type-file-file-selection-eventLet's say we have this code: which results in this:When the user clicks the 'Browse...' button, a file search dialog box is opened:  The user will select the file either by double-clicking the file or by clicking the 'Open' butto..

WEB/JavaScript 2020.09.21

html5, javascript ... 웹 파일 읽기/쓰기 업로드 가능 관련

================================= ================================= ================================= 출처: http://jongjongbari.tistory.com/92 ajax를 이용한 파일업로드 예제 공유/html 2014.04.15 18:52 XMLHttpRequest Level2 : XMLHttpRequest 사양이 발전한 형태로 아래 세가지 특징을 갖는다. 1. 크로스 도메인으로 요청을 송신할 수 있게 됨. 2. 파일이나 바이너리 데이터, 폼 데이터 등 송신할 수 있는 종류가 늘어남. 3. 요청 진행 상황을 확인할 수 있음(업로드/다운로드 모두) fileupload.html XMLHttpRequest Level2를..

WEB/JavaScript 2020.09.20

[JavaScript] 스크립트 기반 애니메이션용 타이밍 컨트롤 관련

=====================================================================    출처: http://codeincomplete.com/posts/javascript-game-foundations-the-game-loop/ Ten Essential Foundations of Javascript Game DevelopmentA Web Server and a Module StrategyLoading AssetsThe Game LoopPlayer InputMathDOMRenderingSoundState ManagementJuicinessThe Game LoopIn board games, card games, and text-adventure games, the ..

WEB/JavaScript 2020.09.20

[JavaScript] 자바스크립트 코드, 코드압축, 코드숨기기 코드암호화 보안 관련

출처: http://pay114.cafe24.com/?c=7/9&uid=359 1.escape/unescape 이용 escape() 는 알파벳과 숫자 및 * , @, - , _ , + , . , / 를 제외한 문자를 모두 16진수 문자로 바꾸어 줍니다. unescape()는 16진수로 변환된 암호문을 원문으로 변환합니다. ※ 둘다 자바스크립트의 내장함수 ex)")+"");//인코딩된 문자열을 다시 원문으로 디코딩document.write(unescape("%3Cscript%20lnaguage%3Djavascript%3Ealert%28%27d%27%29%3B%3C/script%3E"));//html이나 javascript일경우 브라우저가 해석해 버리기때문에 을 써서 실행을 안시키고 소스 출력documen..

WEB/JavaScript 2020.09.20

Node.js로 ECMAScript 모듈을 사용하는 방법 관련(import, export, mjs) 관련

NodeJs 버전업 방법 링크- https://202psj.tistory.com/1350 출처: https://shlee0882.tistory.com/231 1. babel 이란? js es6 최신문법을 사용해도 예전 문법으로 바꿔주는 역할을 한다. 1.1 babel 설치 npm install @babel/node npm install @babel/preset-env npm install @babel/core 1.2 .babelrc 파일 생성, index.js 및 package.json 수정 - .babelrc 파일 생성 후 내용 추가 { "presets": ["@babel/preset-env"] } - index.js 수정 // const express = require('express..

WEB/JavaScript 2019.12.13

[JavaScript] 자바스크립트 다운로드 링크 구현하기

출처: http://cd4761.blogspot.com/2017/02/web.html 코딩 연습겸 웹 개발..을 하기전에 보고 배운것부터 정리.. 먼저 다운로드 버튼 다운로드//button type을 submit으로 지정해주고 id를 download_btn으로 해준다. class는 신경안써도 될듯...? 버튼을 클릭하면 download() 함수를 호출하여 url을 통해 다운로드를 실행하면 완료. 쓰고 보니 아무것도 없이 딸랑 저것만 있으면 나중에 봤을때 나도 이해안될것 같다.. 그래도 정리안해놓는것보단 나을거라 생각하며...

WEB/JavaScript 2019.09.18

[Node.js] Node.js 피차 종료못한 남은 프로세스[무한루프, 잘못된서버종료 등등] 종료 관련

//피차 종료못한 남은 프로세스[무한루프, 잘못된서버종료 등등] 윈도우 CMD[command]: Taskkill /IM node.exe /F 출처: http://nodejs.sideeffect.kr/docs/v0.8.15/api/child_process.html Table of ContentsChild ProcessClass: ChildProcessEvent: 'exit'Event: 'close'Event: 'disconnect'Event: 'message'child.stdinchild.stdoutchild.stderrchild.pidchild.kill([signal])child.send(message, [sendHandle])child.disconnect()child_process..

WEB/JavaScript 2018.11.05
반응형