x
 
<!DOCTYPE html>
<html>
<body>
<p>单击按钮可在不同数字上演示 pow() 方法。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  var a = Math.pow(0, 1);
  var b = Math.pow(1, 1);
  var c = Math.pow(1, 10);
  var d = Math.pow(3, 3);
  var e = Math.pow(-3, 3);
  var f = Math.pow(2, 4);
  var x = a + "<br>" + b + "<br>" + c + "<br>" + d + "<br>" + e + "<br>" + f;
  document.getElementById("demo").innerHTML = x; 
}
</script>
</body>
</html>