上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 以上是已解决的代码,主要就一句话:menuDisabled:true 阅读全文
posted @ 2016-10-24 16:51 Mr.Kay 阅读(532) 评论(0) 推荐(0) 编辑
摘要: ↓ ↓ ↓如图,项目需求要取消 gridPanel 分页工具栏上的的刷新按钮 没有为什么 听产品的!网上查了一下,居然说改不了,有的说改写function,晕。。。其实很简单,一句CSS就够了,解决方法如下:.x-tb... 阅读全文
posted @ 2016-10-24 11:20 Mr.Kay 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 如图,我的代码是这样的:html中: 订 馆 css中:.statusCheck0 , .statusCheck1{ color: white; width: 20px ; height: 20px; line-height: 20px; ... 阅读全文
posted @ 2016-10-23 12:07 Mr.Kay 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 对,如图 ↑调用 substring() 函数即可~String值.substring(起始位置,结束位置);结束位置不写的话,默认到最后,完美~ 阅读全文
posted @ 2016-10-18 17:13 Mr.Kay 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 先添加格式化的方法:Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" :... 阅读全文
posted @ 2016-10-18 16:05 Mr.Kay 阅读(996) 评论(0) 推荐(0) 编辑
摘要: 直接上代码:.contentTable td { padding: 30px; text-align: left;}注意:默认情况下,table布局中的子控件 text-align 为 center ,此处笔者不需要居中,所以可在此处重写 text-ali... 阅读全文
posted @ 2016-10-10 16:36 Mr.Kay 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 实现效果图如下:如图,就是实现点击之后给对象添加一个样式(add一个className),同事删除其它对象的这个类名(通过className查找对象,再remove这个className)。实现难点如下:1、如何通过className遍历对象可参考: ExtJs 获... 阅读全文
posted @ 2016-09-29 11:38 Mr.Kay 阅读(342) 评论(0) 推荐(0) 编辑
摘要: ExtJs 中会有三类基本对象,htmlelement , Ext.Element 和 CompositeElement 。分别解释一下:htmlelement 指html页面的各种标记元素,可以用 document.getElementById() 获得,具有htm... 阅读全文
posted @ 2016-09-29 11:23 Mr.Kay 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 直接上代码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 下一页