jQuery EasyUI API 中文文档 - NumberBox数字框


  本文标签:NumberBox,数字框

扩展自 $.fn.validatebox.defaults,用 $.fn.numberbox.defaults 重写了 defaults  。
依赖
validatebox
用法
复制代码 代码如下:

<input type="text" id="nn"></input>

复制代码 代码如下:

$(#nn).numberbox({
min:0,
precision:2
});

特性

其特性扩展自 validatebox,下列是为 numberbox 增加的特性 。

名称

类型

说明

默认值

disabled

boolean

定义是否禁用该域 。

false

min

number

允许的最小值 。

null

max

number

允许的最大值 。

null

precision

number

显示在小数点后面的最大精度 。

0

方法

其方法扩展自 validatebox,下列是为 numberbox 追加或重写的方法 。

名称

参数

说明

disable

none

禁用该域 。

enable

none

启用该域 。

fix

none

把值固定为有效的值 。