`
牧羊人
  • 浏览: 211142 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
写一个查询条件时的问题如下: 如我想写一个字段中包含“李”字的所有记录 $str="李"; select * from table where field like '%$str%' ; 显示的记录中除了包含”李”字的记录,还有不包含“李”字的记录。为什么? 在MySQL中,进行中文排序和查找的时候,对汉字的排序和查找结果是错误的。这种情况在MySQL的很多版本中都存在。如果这个问题不解决,那么MySQL将无法实际处理中文。 出现这个问题的原因是:MySQL在查询字符串时是大小写不敏感的,在编绎MySQL时一般以ISO-8859字符集作为默认的字符集,因此在比较过 ...

SearchField

/* * Ext JS Library 2.1 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.app.SearchField = Ext.extend(Ext.form.TwinTriggerField, { initComponent : function(){ Ext.app.SearchField.superclass.initComponent.call(this); ...
/** * Page Size Plugin for Paging Toolbar * * @author wjc */ Ext.ux.PageSizePlugin = Ext.extend(Ext.form.ComboBox, { store: new Ext.data.SimpleStore({ fields: ['text', 'value'], data: [['5', 5], ['10', 10], ['15', 15], ['20', 20], ['25', 25], ['50', ...

PagingToolbar 扩展

Ext.namespace('Ext.ux.PagingToolbarEx'); Ext.ux.PagingToolbarEx = Ext.extend(Ext.PagingToolbar, { space : '&nbsp;', beforePageText : '', afterPageText : '', randomId : 0, formArrays : function(arys, cur_page) { for(var i=0; i<arys.length; i++) { ...
分页后可保存checkbox的选择状态。 /** * 封装的grid * 功能:分页后仍保持选中状态 * 约定:root为list, totalProperty为total, grid的第一列必须为id */ Ext.namespace('Ext.ux.grid'); Ext.ux.grid.MyGrid = Ext.extend(Ext.grid.GridPanel,{ ...
//*****************************************上传的公共js***************************************************************// /** * 约定:types为调用时传来的参数.形式为jsp-gig-png * uploadid为上传后要填充路径的控件id * 上传的属性均为upload * 功能:页面调用openUpload("","");方法即可 */ //...允许上传的后缀 ...

extJs之下拉框联动

EXT 
// 第一个下拉框 var parentStore = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: 'loadByParentid.action?parentid=1001' }), reader: new Ext.data.JsonReader({ root: 'list', id: 'id' }, [ {name: 'id', mapping: 'id'}, {name: 'mc', mapping: 'name'} ]) }); // ...

combtree

var comboxWithTree = new Ext.form.ComboBox({ store:new Ext.data.SimpleStore({fields:[],data:[[]]}), editable:false, shadow:false, mode: 'local', triggerAction:'all', maxHeight: 200, tpl: '<tpl for="."><div style="height:200px"><div id="tr ...
1.动态更换图标: 代码 node.on('click',function(node){ node.getUI().getIconEl().src = 'img/1.gif'; }); 2.覆写 Ext.tree.TreeLoader 的 createNode Ext.tree.MyTreeLoader = function(config) { Ext.tree.MyTreeLoader.superclass.constructor.call(this, config); }; Ext.extend(Ext.tree.MyTreeLoader, E ...
var Tree = Ext.tree; Ext.onReady(function(){ var vport=new Ext.Viewport( { enableTabScroll:true, layout:"border", items:[ { title:"导航菜单", region:'west', id:'ma', width:200, collapsible:tr ...
经测试 可以用,并且做了修改可以兼容以前的代码格式 Ext.namespace("Ext.ux.data"); /** * @class Ext.ux.data.DwrProxy * @extends Ext.data.DataProxy * @author loeppky * An implementation of Ext.data.DataProxy that uses DWR to make a remote call. * Not all of Ext.data.DataProxy's configuration options ma ...
MyEclipseGen.java import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyr ...
spket最好用了,而且它还支持ext,安装起来很简单..... 1、选择Help -> Software Updates -> Find and Install...-> Search for new features to install ->New remote site... Name: "Spket", Url: "http://www.spket.com/update/"下载完毕重启 Eclipse 2、Window -> Preferences -> Spket -> JavaScript ...
具体的工程步骤: 首先,我们来搭建WEB服务端的程序: 这时,我们需要下载一个JAR。名为extdirect4j-0[1].3.1-source.jar,目前是最新版吧。因为这个包用到GG一些办法,那么,我们还需要下载gson-1.3.jar。 接下来,这些写一个继承ExtDirectRouter的类,如下面: package com; import ch.swissdotnet.extdirect4j.AnnotatedAction; import ch.swissdotnet.extdirect4j.ExtDirectRouter; import ch.swissdotne ...
package util; import java.awt.*; import javax.swing.*; import java.awt.color.*; public class ColorTranslate { ICC_Profile ICC_pf; ICC_ColorSpace ICC_ClSpace; //以下变量存储CMYK颜色值,取值为0到100 int C = 9; int M = 9; int Y = 9; int K = 9; //初始化ICC_Profile和ICC_ColorSpace类对象 publ ...
Global site tag (gtag.js) - Google Analytics