<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>table表格</title>
<script>
window.onload=function(){
function asdasd(){
alert("123");
}
}
</script>
</head>
<body>
<button onclick="asdasd()">点击跳出</button>
</body>
运行提示是asdasd未定义,把函数放到onload外面就能运行了,想知道这是什么原因
慕瓜9220888