会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Mr.Kay
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
16
下一页
2016年10月24日
【解决方案】extjs 怎么取消 gridPanel 表头上的图标(下拉排序)
摘要: 以上是已解决的代码,主要就一句话:menuDisabled:true
阅读全文
posted @ 2016-10-24 16:51 Mr.Kay
阅读(532)
评论(0)
推荐(0)
编辑
【解决方案】extjs 怎么取消 gridPanel 分页工具栏上的刷新按钮
摘要: ↓ ↓ ↓如图,项目需求要取消 gridPanel 分页工具栏上的的刷新按钮 没有为什么 听产品的!网上查了一下,居然说改不了,有的说改写function,晕。。。其实很简单,一句CSS就够了,解决方法如下:.x-tb...
阅读全文
posted @ 2016-10-24 11:20 Mr.Kay
阅读(445)
评论(0)
推荐(0)
编辑
2016年10月23日
【解决方案】CSS 给 label 设置宽高无效
摘要: 如图,我的代码是这样的:html中: 订 馆 css中:.statusCheck0 , .statusCheck1{ color: white; width: 20px ; height: 20px; line-height: 20px; ...
阅读全文
posted @ 2016-10-23 12:07 Mr.Kay
阅读(1570)
评论(0)
推荐(0)
编辑
2016年10月18日
ExtJS textField 表单验证 常用正则表达式
摘要: xtype: 'textfield',1.regex: /^[\u4e00-\u9fa5]+$/i,regexText : "请输入中文",2.regex: /^\d+$/,regexText: "电话号码只能为数字",3.regex: /^(http|https|f...
阅读全文
posted @ 2016-10-18 18:23 Mr.Kay
阅读(413)
评论(0)
推荐(0)
编辑
JS 截取字符串
摘要: 对,如图 ↑调用 substring() 函数即可~String值.substring(起始位置,结束位置);结束位置不写的话,默认到最后,完美~
阅读全文
posted @ 2016-10-18 17:13 Mr.Kay
阅读(91)
评论(0)
推荐(0)
编辑
js如何获取当前时间 并格式化
摘要: 先添加格式化的方法:Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" :...
阅读全文
posted @ 2016-10-18 16:05 Mr.Kay
阅读(996)
评论(0)
推荐(0)
编辑
2016年10月10日
ExtJs中table布局如何设置items之间的间距
摘要: 直接上代码:.contentTable td { padding: 30px; text-align: left;}注意:默认情况下,table布局中的子控件 text-align 为 center ,此处笔者不需要居中,所以可在此处重写 text-ali...
阅读全文
posted @ 2016-10-10 16:36 Mr.Kay
阅读(692)
评论(0)
推荐(0)
编辑
2016年9月29日
ExtJs 实现点击修改DOM样式 增删clssName
摘要: 实现效果图如下:如图,就是实现点击之后给对象添加一个样式(add一个className),同事删除其它对象的这个类名(通过className查找对象,再remove这个className)。实现难点如下:1、如何通过className遍历对象可参考: ExtJs 获...
阅读全文
posted @ 2016-09-29 11:38 Mr.Kay
阅读(342)
评论(0)
推荐(0)
编辑
ExtJs 获取Dom对象
摘要: ExtJs 中会有三类基本对象,htmlelement , Ext.Element 和 CompositeElement 。分别解释一下:htmlelement 指html页面的各种标记元素,可以用 document.getElementById() 获得,具有htm...
阅读全文
posted @ 2016-09-29 11:23 Mr.Kay
阅读(812)
评论(0)
推荐(0)
编辑
2016年9月18日
ExtJs中如何实现点击之后修改类名(class)
摘要: 直接上代码check:function(){ var cmp = this.ownerCt; if (this.checked == true) { cmp.addClass("magazineTableRowSelecte...
阅读全文
posted @ 2016-09-18 15:24 Mr.Kay
阅读(327)
评论(0)
推荐(0)
编辑
上一页
1
···
7
8
9
10
11
12
13
14
15
16
下一页
公告