我是靠谱客的博主 斯文星月,这篇文章主要介绍ext js 中的取整(取模)parseInt(num/num1),现在分享给大家,希望可以做个参考。

{
                    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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(121)

评论列表共有 0 条评论

立即
投稿
返回
顶部