【JavaScript】JS中没有代码块的概念

     <script>

         var m = "roboce";
if(m === "roboce"){
var k = "haha";
} var a = function() {
var aa = "aa";
} function f1() {
var bb = "bb";
}
console.log(k); // haha
console.log(aa); // undefined
console.log(bb); // undefined
</script>
上一篇:MYSQL的JOB


下一篇:scp输入密码问题