返回到:Prototype – 数字处理
此方法返回由 current + 1 定义的当前 Number 的后继。用于使数字与 ObjectRange 兼容。
语法
number.succ();
返回值
舍入当前 Number 的后继者。
例子
<html>
<head>
<title>Prototype examples</title>
<script type = "text/javascript" src = "/javascript/prototype.js"></script>
<script>
function showResult() {
alert( "(5).succ() : " + (5).succ() );
alert( "(-5).succ() : " + (-5).succ() );
}
</script>
</head>
<body>
<p>Click the button to see the result.</p>
<br />
<br />
<input type = "button" value = "Result" onclick = "showResult();"/>
</body>
</html>返回到:Prototype – 数字处理
作者:terry,如若转载,请注明出处:https://www.web176.com/prototype_api/8924.html
支付宝
微信