<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>x的值为: <input type="text");
var sum=1;
var i=1;
for (i;i<=y;i++) {
sum=Math.pow(x,y);//第一种方法
//sum=sum*x;//第二种方法
}
jg.innerHTML=sum;
}
</script>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2021-12-15
  • 2022-12-23
  • 2021-12-15
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-02-06
相关资源
相似解决方案