«   2018/01   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Archives
Today
414
Total
1,047,155
관리 메뉴

Blue Breeze

Node.js Arguments 본문

Language/Node.js

Node.js Arguments

푸른바람 푸른_바람 2016.01.28 15:28

var myfunc = function(one) {
	arguments.callee === myfunc;
	arguments[0] === one;
	arguments[1] === 2;
	arguments.length === 3;
}

myfunc(1, 2, 3);

var myfunc = function(one) {
	console.log( arguments.callee === myfunc );
	console.log( arguments[0] === one );
	console.log( arguments[1] === 2 );
	console.log( arguments.length === 3 );
}

myfunc(1, 2, 3);

var myfunc = function(one){
	console.log( aguments );
	ocnsole.log( JSON.stringify(aguments) );
}


'Language > Node.js' 카테고리의 다른 글

npm CLI Commands  (0) 2016.02.18
Nodejs Mysql PROTOCOL_ENQUEUE_AFTER_QUIT 에러  (0) 2016.02.02
Node.js Arguments  (0) 2016.01.28
nodejs mysql multiquerys  (0) 2016.01.18
ENOENT  (0) 2015.12.30
socket.io room join socket.id express api On Nodejs 5.1.0 + socket.io 1.3.7  (0) 2015.12.17
0 Comments
댓글쓰기 폼