<command>标记示例
<html> <head> <script type="text/javascript"> function hello() { alert("执行hello函数"); } </script> </head> <body> <menu> <command type="command" label="hello" onclick="hello()">Hello</command> </menu> </body> </html>
html 5中的<command>标记用于定义用户可以调用的命令。
html 5中的<command>标记可以在网页中的任何位置使用。
它可以在菜单或者工具列中使用。
日期:2020-04-11 23:04:15 来源:oir作者:oir