easyui源码翻译1.32--NumberBox(数值输入框)
2014-01-01 18:27
591 查看
前言
扩展自$.fn.validatebox.defaults。使用$.fn.numberbox.defaults重写默认值对象。下载该插件翻译源码数值输入框是用来限制用户只能输入数值型数据的。他可以转换一个输入的元素到其他类型,比如:数字、百分比、货币等。更多的输入类型定义依赖于'formatter'和'parser'函数
源码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Basic NumberBox - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../../themes/icon.css"> <link rel="stylesheet" type="text/css" href="../demo.css"> <script type="text/javascript" src="../../jquery-1.8.0.min.js"></script> <script src="../../plugins2/jquery.parser.js"></script> <script src="../../plugins2/jquery.validatebox.js"></script> <script src="../../plugins2/jquery.numberbox.js"></script> </head> <body> <h2>Basic NumberBox</h2> <div class="demo-info"> <div class="demo-tip icon-tip"></div> <div>The Box can only input number.</div> </div> <div style="margin:10px 0;"></div> <input class="easyui-numberbox" required data-options=" onChange: function(value){ $('#vv').text(value); }"> <div style="margin:10px 0;"> Value: <span id="vv"></span> </div> </body> </html>
View Code
插件效果
相关文章推荐
- easyui源码翻译1.32--DateBox(日期输入框)
- easyui源码翻译1.32--DateTimeBox(日期时间输入框)
- easyui源码翻译1.32--TreeGrid(树形表格)
- easyui源码翻译1.32--ValidateBox(验证框)
- easyui源码翻译1.32--datagrid(数据表格)
- easyui源码翻译1.32+API翻译全篇导航 (提供下载源码)
- easyui源码翻译1.32--ComboBox(下拉列表框)
- easyui源码翻译1.32--Draggable(拖动)
- easyui源码翻译1.32--Droppable(放置)
- easyui源码翻译1.32--Pagination(分页)
- easyui源码翻译1.32--EasyLoader(简单加载)
- easyui源码翻译1.32---ProgressBar(进度条)
- easyui源码翻译1.32--ComboGrid(数据表格下拉框)
- easyui源码翻译1.32--Form(表单)
- easyui源码翻译1.32--Layout(布局)
- easyui源码翻译1.32--PropertyGrid(属性表格)
- easyui源码翻译1.32--LinkButton(按钮)
- easyui源码翻译1.32--Resizable(调整大小)
- easyui源码翻译1.32--ComboTree(树形下拉框)
- easyui源码翻译1.32--Window(窗口)