您的位置:首页 > Web前端 > JQuery

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

2011-10-13 20:38 645 查看

NumberBox 数字框

博客园 风流涕philoo.cnblogs.com) 翻译。不当之处,敬请指正。转载请保留出处!

扩展自 $.fn.validatebox.defaults,用 $.fn.numberbox.defaults 重写了 defaults 。

依赖

validatebox

用法

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

1. $('#nn').numberbox({

2. min:0,

3. precision:2

4. });

特性

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

名称

类型

说明

默认值

disabled

boolean

定义是否禁用该域。

false

min

number

允许的最小值。

null

max

number

允许的最大值。

null

precision

number

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

0

方法

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

名称

参数

说明

disable

none

禁用该域。

enable

none

启用该域。

fix

none

把值固定为有效的值。



    博客园 风流涕philoo.cnblogs.com) 翻译。不当之处,敬请指正。转载请保留出处!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: