案例:JavaScript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
6
Number.prototype.toHexString = function() {
7
  return this.toString(16);
8
};
9
10
var iNum = 15;
11
document.write(iNum.toHexString());
12
13
</script>
14
15
</body>
16
</html>
17