///
var UITouchSpin = function () {
///
/// bootstrap-touchspin 扩展JS类库
///
///
var hanlderCommon = function (inputName, min, max, postfix, decimals) {
decimals = decimals || 0;
postfix = postfix || '';
var _touchspin = $("input[name=" + inputName + "]").TouchSpin({
min: min,
max: max,
step: 1,
decimals: decimals,
boostat: 1,
maxboostedstep: 1,
postfix: postfix
});
}
return {
initCommon: function (inputName, min, max, postfix, decimals) {
///
/// 通用Jquery Touchspin插件初始化函数
///
/// input name
/// 最小值
/// 最大值
/// 后缀
/// 小数点位数
hanlderCommon(inputName, min, max, postfix, decimals);
}
}
}();