源代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function setAlign() { alert("Some javaScript...."); } </script> </head> <body> <menu> <command type="radio" label="Left" checked onclick="setAlign('left')">Left</command> <command type="radio" label="Center" disabled onclick="setAlign('center')">Center</command> <command type="radio" label="Right" onclick="setAlign('right')">Right</command> </menu> <p><b>注意:</b>目前,几乎所有的主流浏览器都不支持 checked 属性。.</p> </body> </html>
运行结果:
Fmpq工具