<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
function fn(a){
console.log(a); //输出函数
var a=2; //声明提前
function a(){}; //声明提前
console.log(a); //输出2
}
fn(1);
</script>
</body>
</html>
声明提前
最新推荐文章于 2022-12-07 12:18:44 发布