测试

function test(){ var message = "hi"; // 局部变量 } test(); alert(message); // 错误!

原文地址:https://www.cnblogs.com/thingjs/p/13558017.html