HTML
CSS
JavaScript
Vue
React
Python
PHP
Java
.Net
Java9手册
PHP手册
CSS3手册
jQuery手册
源代码
在线运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>代码学院(codexy.cn)</title> <script> function displayResult(){ var x=document.getElementById("check1").type; alert(x); } </script> </head> <body> <form> <input type="checkbox" id="check1">你喜欢夏天吗? </form> <button type="button" onclick="displayResult()">显示 input 类型</button> </body> </html>
动行结果