THE HAM MEDIA BLOG

JavaScript×FirebugFconsole.log()

Clip to Evernote ‚±‚̃Gƒ“ƒgƒŠ[‚ð‚͂ĂȃuƒbƒNƒ}[ƒN‚ɒljÁ
ƒJƒeƒSƒŠF
JavaScript
ƒ^ƒOF
javascript
Firefox
Firebug

JavaScript×FirebugFconsole.log

¡‰ñ‚Ì‚¨•×‹­‚Íconsole.log()‚ɂ‚¢‚āB

JavaScript‚ð\’z‚µ‚Ä‚¢‚é‚Æ‚«‚ɁA
‚ǂ̂悤‚ÈŒ‹‰Ê‚ª•Ô‚Á‚Ä‚­‚é‚Ì‚©‚Æ‚¢‚¤‚Ì‚ðŠm”F‚·‚鎞‚́A
HTMLã‚ɏ‘‚«o‚³‚¹‚½‚èAalert‚ÅŠm”F‚·‚é•û–@‚ðŽg‚Á‚½‚è‚·‚邯‚ǁA
‚±‚̍¡‰ñ‚Ìconsole.log()‚́AFirefox‚̃vƒ‰ƒOƒCƒ“‚Ì
Firebug‚̃Rƒ“ƒ\[ƒ‹—“‚ÉŒ‹‰Ê‚ð•\Ž¦‚³‚¹‚é‚à‚̂炵‚¢B

’m‚ç‚È‚©‚Á‚½‚̂сƒ‚ƒGƒ“ƒgƒŠ[

ŽÀŒ±

¡ƒTƒ“ƒvƒ‹

console.log('Hello World');
console.log($('title'));
console.log($('title').text());

¡o—ÍŒ‹‰Ê

JavaScript×FirebugFconsole.log

‚±‚ê‚Í•Ö—˜‚¾I
‚Æ‚¢‚¤‚±‚ƂŁA¡Œã‚Í‘½—p‚µ‚Ă݂悤‚ÆŽv‚¤B

‚±‚Ì‹LŽ–‚ւ̃Rƒƒ“ƒg
ƒRƒƒ“ƒg‚ð‘‚­
‚¨–¼‘O: [•K{“ü—Í]

ƒ[ƒ‹ƒAƒhƒŒƒX: [•K{“ü—Í]

ƒz[ƒ€ƒy[ƒWƒAƒhƒŒƒX:

ƒRƒƒ“ƒg: [•K{“ü—Í]

”FØƒR[ƒh: [•K{“ü—Í]


¦‰æ‘œ‚Ì’†‚Ì•¶Žš‚𔼊p‚Å“ü—Í‚µ‚Ä‚­‚¾‚³‚¢B

‚±‚Ì‹LŽ–‚ւ̃gƒ‰ƒbƒNƒoƒbƒN

ƒgƒbƒv‚É–ß‚é