JS - 语句
2015-01-20 本文已影响56人
sunorry
var a = 1;
var a = b = 1; //b是全局变量
try {
throw "text";
} catch (ex) {
console.log(ex); //text
} finally {
console.log('finally');
}
var a = 1;
var a = b = 1; //b是全局变量
try {
throw "text";
} catch (ex) {
console.log(ex); //text
} finally {
console.log('finally');
}