{
title: '门磁',
titleAlign: 'center',
layout: 'column',
defaultType: 'slider',
defaults: {
columnWidth: 1,
padding: '7 10',
labelAlign: 'top'
},
items:[{
id: 'like_wcys',
fieldLabel: '门磁报警时间',
maxValue:100,
value: 0,
name: 'fx',
listeners:{
change: function(slider, newValue, thumb) {
if(newValue<=60){
slider.next().setValue(newValue + "秒");
}else{
slider.next().setValue(parseInt(newValue/60)+"分"+(newValue-parseInt(newValue/60)*60)+ "秒");
}
}
}
}
滑动条
js中要想显示几分几秒 ,用
parseInt(newValue/60)+"分"+(newValue-parseInt(newValue/60)*60)+ "秒"
转载于:https://my.oschina.net/m243043962/blog/908115
最后
以上就是斯文星月最近收集整理的关于ext js 中的取整(取模)parseInt(num/num1)的全部内容,更多相关ext内容请搜索靠谱客的其他文章。
发表评论 取消回复