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

js延時加載defer

2022-06-13   來源: 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-2022 電腦知識網 Computer Knowledge   All rights reserved.