在HTML页面中,定义了如下的Javascript函数,则正确调用该函数的HTML代码是() function compute(op){ alert(op); }
- A、<input name=”a” type=”button” onclick=”compute(this.value)” value=”+”>
- B、<input name=”b” type=”button” onclick=”compute(‘-‘)” value=”-”>
- C、<input name=”c” type=”button” onclick=”compute(“*”)” value=”*”>
- D、<input name=”d” type=”button” onclick=”compute(/ )” value=”/”>
正确答案:A,B
答案解析:有

微信扫一扫手机做题