<script language="JavaScript"> document.write( Math.pow(0,0) + "<br />" ); document.write(Math.pow(0,1) + "<br />") document.write( Math.pow(1,0) + "<br />" ); document.write( Math.pow(2,2) + "<br />" ); document.write( Math.pow(2,5) ); </script>
运行该例子,输出:
1 0 1 4 32