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

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) 翻译。不当之处,敬请指正。转载请保留出处!

 

posted @ 2011-10-13 20:38  风流涕淌  阅读(16597)  评论(1编辑  收藏  举报