日期:2014-05-16 浏览次数:20414 次
<html> <head> <meta http-equiv="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Content-Language" content="zh-cn"/> <meta http-equiv="Content-Type" content="text/html; charset=GBK"/> <script type="text/javascript"> function detect() { //fill var aForm = document.forms[0]; alert(aForm); } document.onready = detect(); </script> </head> <body> <form action=""> <input type="hidden" name="act" value=""/> </form> </body> </html>
window.onload=detect;
------解决方案--------------------
document.onready 我也没见过
你是想用JQ么 那么你要引入JQ 然后参照API写是吧