熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

js延時加載defer

2013-11-15 11:53:02  來源: JSP教程 

  <!DOCTYPE html PUBLIC "//WC//DTD XHTML Transitional//EN" "
<html xmlns="
<head>
<title></title>
<script type="text/javascript" defer="defer">
alert(documentgetElementById("myinput")value) ;
</script>
</head>
<input type="hidden" name="myinput" id="myinput" value="test"/>
<body>
</body>
</html>


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19805.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.