04_2015 12 07 day2 - brodieroy/Study GitHub Wiki

2015-12-07(day2)

0. firefox ์„ค์น˜

1.firebug download ํ›„ ์„ค์น˜
https://getfirebug.com/downloads/

2. ๊ธ€์”จ์ด์˜๊ฒŒ ๋‚˜์˜ค๊ฒŒ ํ•˜๊ธฐ(๋‚˜์ค‘์— ํ•ด๋ณด๊ธฐ)
firebug console text color

2.1. ์„ค์น˜ํ›„ ๋ธŒ๋ผ์šฐ์ ธ ์šฐ์ธก ์ƒ๋‹จ์— ๋ฒŒ๋ ˆ ํด๋ฆญ(?)

3. ์ฝ˜์†”ํ™”๋ฉด์— var = 3 ๋ญ์ด๋ ‡๊ฒŒ ์น˜๋ฉด ๋ฐ”๋กœ๋ฐ”๋กœ ๋‚˜์˜จ๋‹ค.

์„ค์น˜ ๋

4. ui laboratory ๋“ค์–ด๊ฐ€์„œ ์„ค๋ช…์‹œ์ž‘
http://mylko72.maru.net/jquerylab/javascript/javascript.oop.html?hn=1&sn=2

4.1. heap ๋“ฑ์„ ์„ค๋ช…
๊ฒ€์ƒ‰ ํ‚ค์›Œ๋“œ : javascript variable size

4.2. ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜
4.2.1 ๋“ค์–ด๊ฐ€๊ธฐ ์ „์— ๋ณ€์ˆ˜ ์„ค๋ช…

๊ธฐ๋ณธํ˜• : undefined , null, 0, false, Nan 5๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
undefiened: ๋ณ€์ˆ˜์— ๊ฐ’์„ ํ• ๋‹นํ•˜์ง€ ์•Š์•˜์„๋•Œ java script๊ฐ€ undefined๋ฅผ ํ• ๋‹น์‹œํ‚จ๋‹ค.
NaN ์ˆซ์ž๊ฐ€ ์•„๋‹ˆ๋‹ค.

4.2.2.
์•„๋ž˜์˜ ์˜ˆ์ œ๋ฅผ ์‹คํ–‰ํ•ด๋ณธ๋‹ค.
var a = null;
if(!a){
console.log(โ€œHello worldโ€);
}

์•„๋ž˜์˜ ์˜ˆ์ œ๋ฅผ ์‹คํ–‰์‹œ์ผœ๋ณธ๋‹ค.
4.2.3.
function f(){
console.log(โ€œhellow worldโ€);
}

f();
4.2.4.
f();

function f(){
console.log(โ€œhellow worldโ€);
}
4.2.5.
f(); // var๋กœ ํ• ๋‹น์‹œ์— ์ „์—ญ์— ์กด์žฌ ํ•˜์ง€ ์•Š๋Š”๋‹ค.
var f = function f(){
console.log(โ€œhellow worldโ€);
}
// ์ด๋ถ€๋ถ„์—์„œ ํ˜ธ์ถœํ•˜๋ฉด ์ •์ƒ๋™์ž‘ํ•œ๋‹ค.

4.2.6. this์˜ ์„ค๋ช…
function Person(name){
console.log(this);
this.name = name;
notthisName = 1;
}
var a = new Person(โ€œBaboโ€);

4.2.7. ํ•จ์ˆ˜๋ชจ๋ธ๋ง?
ํ”„๋กœํ† ํƒ€์ž…์ด๋ž€?
protype(=์›ํ˜•)

4.2.8. java script hosting
function add(){
console.log(โ€œhi=โ€ + x);
var x = 100;
console.log(โ€œhi=โ€ + x);

}

add();
๋‹ค๋ฅธ๋ง๋กœ ๋ณ€์ˆ˜๋ฅผ ๋Œ์–ด์˜ฌ๋ฆฌ๋Š” ๊ฒƒ.

4.2.9. ์˜ˆ์ œ
function add(a,b,c){
//console.log(arguments);
console.log(arguments.callee);
console.log(arguments instanceof Array);
}

add(4,5,6);

4.2.10.์ต๋ช…ํ•จ์ˆ˜๊นŒ์ง€

(function(a,b){console(a,b)};)(2,3)
-โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
2015-12-15 javascript
ui laboratory

1.calee
2. Function
3. ๋ณ€์ˆ˜ ํ• ๋‹น
4. ์ต๋ช…ํ•จ์ˆ˜
5. ์ค‘์ฒฉํ•จ์ˆ˜
6. ๋ณ€์ˆ˜ ์Šค์ฝ”ํ”„ ๊ฐ์ฒด
-โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”-
2015-12-17
1. text extension์„ค์น˜
acebug firefox ๊ฒ€์ƒ‰ํ•˜๋ฉด ๋ฐ”๋กœ ์„ค์น˜๊ฐ€๋Šฅ
F12๋ˆŒ๋Ÿฌ์„œ console ์—์„œ typingํ• ๋•Œ ์ข‹์Œ

2. ์ „์—ญ ๋ณ€์ˆ˜, ์ง€์—ญ๋ณ€์ˆ˜
3. ๋ ‰์‹œ์ปฌ ํŠน์ง•? โ†’ ์กฐ๊ธˆํ•ด๊น”๋ฆฌ์ง€๋งŒ local์—์„œ var์„ ๋จผ์ € ํ•ด์ฃผ๋ฉด๋œ๋‹ค.
4. ๋ณ€์ˆ˜ ์Šค์ฝ”ํ”„ ์ฒด์ธ

โš ๏ธ **GitHub.com Fallback** โš ๏ธ