`
文章列表

dos 待机命令

rundll32.exe powrprof.dll SetSuspendState
You can only use a single Ext.MessageBox at a time. If you try to pop up two boxes at the same time, the first will be replaced by the second. So in some cases, you'll want to check for the presence of an existing dialog in case you inadvertently overwrite the message it is presenting.
function simpleQuery() { var time = Ext.get('datetype').dom.value; var timeb = time + 'b'; var timee = time + 'e'; store.removeAll(); store.load({ params : { timeb : Ext.get('stimeb').dom.value, timee : Ext.get('stimee').dom.value, start : 0, limit : 10, }, callback : function(r, options, success) { ...

Ext form 回车提交

fyi: function submitFunction() { if (searchPanel.getForm().isValid()) { searchPanel.getForm().submit({ url : 'xxxxxxxx', method : 'post', params : { start : 0, limit : 10 }, waitMsg : '查询中,请稍后...', success : function(form, option) { queryWindow.hide(); ...
{ id : 'sstatus', xtype : 'combo', fieldLabel : '状态', name : 'status', hiddenName : 'status', anchor : '90%', mode : 'local', store : statusDS, typeAhead : true, ...
private void printAllParam(HttpServletRequest request){ Enumeration paramNames = request.getParameterNames(); while(paramNames.hasMoreElements()) { String paramName = (String)paramNames.nextElement(); System.out.println(paramName+": "+request.getP ...
request经过struts处理后默认encoding是iso8859-1,  要纠正这个问题要赶在struts的黑手之前 ,建立filter, 在ActionServlet之前拦截*.do,转换编码   解决Struts乱码问题 a) 配置一个Filter过滤器,加入request.setCharacterEncoding("UTF-8"); b) 写一个Servlet继承自ActionServlet在doGet,doPost方法中加入request.setCharacterEncoding("UTF-8"); i. 修改web.xml,把Act ...
转自:http://blog.sina.com.cn/s/blog_42ce8e350100dlsb.html   今天使用ExtJS 2.2.1进行页面开发时,发现在IE6中的Grid的表头显示 异常,图标和文字发生错乱,如图:     在Firefox和chrome显示都是正常的,很是奇怪,难道是版本问题?   将2.2版本和2.2.1版本的ext-all.css进行了比较,发现有两处不一样,改回2.2版本后一切正常:   找到.x-menu a.x-menu-item{display:block;line-height:16px;padding:3px 21px 3px ...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" /> <script type="text/javascript" src=& ...

ext 笔记

Ext.onReady(function() { Ext.BLANK_IMAGE_URL = "extjs/resources/images/default/s.gif"; Ext.Msg.show({ title : 'Milton', msg : 'Have you seen my stapler?', buttons : { yes : '确定', no : '不', cancel : '取消' }, icon : 'milton-ico ...
  Spacer image Before we proceed any further, we should provide Ext with something it needs—a spacer image. Ext needs a 1 pixel by 1 pixel, transparent, GIF image to stretch in different ways, giving a fixed width to its widgets. We need to set the location of this spacer image using the followi ...
EXT 最小集合 想把ext放入自己的项目,需要自己整理一下,因为发布包里的东西并非都是必要的,比如文档,比如例子,比如源代码。 必要的最小集合是这样:ext-all.js,adapter/ext/ext-base.js,build/locale/ext-lang-zh_CN.js和整个resources目录。 ext-all.js,adapter/ext/ext-base.js就包含了ext的所有功能,所有的js脚本都在这里了。 build/locale/ext-lang-zh_CN.js是中文翻译。 resources目录下是css样式表和图片。 ...
> For example: > I want to substitute A with T and G with C and vice > versa > > A -> T > G -> C > T -> A > c -> G You can do this with the translate() method of a string. It is a two-step process. First you have to make a translation tab ...
web.xml中 <servlet> <servlet-name>ServletConfigurator</servlet-name> <servlet-class> org.logicalcobwebs.proxool.configuration.ServletConfigurator </servlet-class> <init-param> <param-name ...
  log4j.appender.Root=org.apache.log4j.RollingFileAppender   log4j.appender.Root.File=xx.log   log4j.appender.Root.MaxFileSize=10000KB   log4j.appender.Root.MaxBackupIndex=10   log4j.appender.Root.layout=org.apache.log4j.PatternLayout   log4j.appender.Root.layout.ConversionPattern=[%p] %-d{yyy ...
Global site tag (gtag.js) - Google Analytics