<html>
<head>
<script>
function test(){
return function(){
alert("hi");
}
}
test();
</script>
</head>
<body>
</body>
</html>
這是我的代碼,請問爲什麼它不起作用?如何在javascript中返回匿名函數
什麼是你希望它做什麼? –
你想在這裏回來什麼? –
我只是想測試一下javascript並瞭解它是如何工作的 – dramasea