• 2022-06-11
    在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是( )。
    未知类型:{'options': ['[input name=”mybutton” type=”button” onClick=”compute” value=”计算”]', '[input name=”mybutton” type=”button” onFocus=”compute()” value=”计算”]', '[input name=”mybutton” type=”button” onClick=”function compute()” value=”计算”]', '[input name=”mybutton” type=”button” onClick=”compute()” value=”计算”]'], 'type': 102}
  • 举一反三