$(function () {
console.log(a);
var a = 1;
console.log(a);
for (var i=0;i<1;i++){
var b = 2;
}
console.log(b);
function abc() {
var c = 3;
};
console.log(c);
abc();
})
來個測驗比較快..
$(function () {
$(function () {
var a = 1;
var b = '1';
var c = {a:'1'};
var d = ['1'];
console.log(a+b+c+d);
})
output: 11[object Object]1