fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function setResult(){ document.getElementById("email").readOnly=true; } </script> </head> <body> <form> Email: <input type="text" id="email"> </form> <button type="button" onclick="setResult()">设置只读</button> </body> </html>
运行结果