JSDK3 Help > API参考 >
Base Classes
>
Number
给原生类“Number”扩展了以下方法:
atAround(min,max,iOptions)
/**
* 在一个范围中的区域
* @return
* (1)iOptions= 0: -1,n<min;0,n>=min&&n<=max; 1, n>max;
* (2)iOptions=1: -1, n<=min; 0, n>min&&n<max; 1, n>=max;
* @created 2010.8.2
* @modified 2010.11.10
*/
isWithin(min,max)
/**
* 是否在一个范围内
*/
isWithout(min,max)
/**
* 是否在一个范围外
*/
JSDK3 V1.8.0