在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” oncli

题目

在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=”/”>
更多“在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” oncli”相关问题