当前位置:Gxlcms > JavaScript > jQueryEasyUIAPI中文文档-NumberBox数字框_jquery

jQueryEasyUIAPI中文文档-NumberBox数字框_jquery

时间:2021-07-01 10:21:17 帮助过:19人阅读

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



代码如下:

$('#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

把值固定为有效的值。

人气教程排行