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. ๋ณ์ ์ค์ฝํ ์ฒด์ธ