此代码放在我的 asp.net 页面的顶部:
function Test(HtmlDocument)
{
}
如何在页面末尾执行此 JavaScript 函数?
最佳答案
只需调用 <script>
中的函数即可紧邻 </body>
之前的标签标签。
<html>
<head>
<!-- snip -->
</head>
<body>
<!-- snip -->
<script>
Test(document);
</script>
</body>
</html>
关于javascript - 我的 javascript 必须如何在 ASP.NET 页面末尾运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6748798/