03 2014 档案
摘要:Ext.onReady(function () { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; var autoloadcontrol =new Ext.form.FieldSet({ layout: "column", title: "属性表单", }) var addForm = new Ext.FormPanel({ ...
阅读全文
摘要:.net-------------------Microsoft.JScript.GlobalObject.escape(); 编码 Mircorsoft.JScript.GlobalObject.unescape();解码js代码 escape(),unescape()
阅读全文
摘要:在数据传输过程中,json是以文本,即字符串的形式传递的,而JS操作的是JSON对象,所以,JSON对象和JSON字符串之间的相互转换是关键。例如:JSON字符串:var str1 = '{ "name": "cxh", "sex": "man" }'; JSON对象:var str2 = { "name": "cxh", "sex": "man" };一、JSON字符串转换为JSON对象要使用上面的str1,必须使用下
阅读全文
摘要:转自:http://www.cnblogs.com/knowledgesea/p/3284404.html序言: 1.本文摘自网络,看控件命名像是4.0以前的版本,但控件属性配置仍然可以借鉴(不足之处,以后项目用到时再续完善)。Ext.form.TimeField:配置项: maxValue:列表中允许的最大时间 maxText:当时间大于最大值时的错误提示信息 minValue:列表中允许的最小时间 minText:当时间小于最小值时的错误提示信息 increment:两个相邻选项间的时间间隔,默认为15分钟 format:显示格式,默认为“g:i A”。一般使用“H:i:s” H:带前缀0
阅读全文
摘要:http://www.cnblogs.com/knowledgesea/p/3286661.html
阅读全文
摘要:Ext.onReady(function () { var sm = new Ext.grid.RowSelectionModel({singleSelect:true})//设置单选 //var sm = new Ext.grid.CheckboxSelectionModel();//设置多选 var cm = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), //显示行...
阅读全文
摘要:Ext.onReady(function () { var cm = new Ext.grid.ColumnModel([{ header: "id", dataIndex: "id" }, { header: "name", dataIndex: "name" }, { header: "score", dataIndex: "score"}]); var data...
阅读全文
摘要:Ext.onReady(function () { var tab = new Ext.TabPanel({ renderTo: Ext.getBody(), height: 500 }) tab.add({ title: "tab1", html:"content" }) tab.add({ id:Ext.id(), ...
阅读全文
摘要:其中使用到的"RowExpander.js"为extjs官方示例中自带的。实现这个嵌套表格要注意两点技巧:1 提供给外层表格的dataStore的数据源以嵌套数组的形式表示细节区的数据,如下面的黑体所示。vartestData=[["lugreen","男",26,[["数学",100],["语文",150]]],["lisi","男",25,[["数学",100],["语文",150]]],["zhang
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using WebUI.Mall;namespace WebUI.NewMall.PropertyManage{ public partial class CategoryPropertyInfo : PageBaseMall {...
阅读全文
摘要:http://www.cnblogs.com/fangsui/category/372751.htmlhttp://www.cnblogs.com/WangJinYang/tag/EXT.NET/http://www.cnblogs.com/codelove/tag/Ext.NET/
阅读全文
摘要:文档对象dom是javascript与页面元素的桥梁选择器的作用就是通过元素的标签名,属性名,css属性名对页面进行快速,准确的定位及选择Extjs的选择器:Ext.DomQueryExt.query(path[,root,type])path:查询要使用的选择符,或xpathroot:查询开始的节点或节点id。如果不设置,默认为document对象,为了提高速度,不要使用document开始查询type:查询的类型,值可以为select和simple,当值为simple时使用id或标签属性值等座简单的查询demo: var el=Ext.get(rootId); //rootId为节点id.
阅读全文
摘要:东西不用,时间长了就会被忘掉。重新拾起来做一个简单的Demo,便于以后的查询服务器端--新建Calculator.asmxusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace WebServiceDemo{ /// /// Calculator 的摘要说明 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceB...
阅读全文
摘要:Extjs中事件包括浏览器事件(单机按钮,鼠标移动等触发)和内部事件(组件之间的联动)绑定浏览器事件的过程Ext.EventManager要为元素绑定事件,通常会使用EventManager.on方法Ext.EventManager.on(el,eventname,fn[,scope,options])el要绑定的事件元素,可以为元素的id,element对象获htmlelement对象eventname一般情况下是事件的名称,但是在一次定义多个事件时可以是一个对象,当eventname是事件名称时,fn就是事件要触发的函数,当eventname是对象时fn会被忽略scope;作用域optio
阅读全文
摘要:Ext是Extjs的命名空间,为Extjs框架提供唯一的全局变量这样做可以避免冲突,便于代码维护1,apply和applyif方法apply=function(object, config, defaults):Copies all the properties of config to the specified object.applyif=function(object, config):Copies all the properties of config to object if they don't already exist(extend方法已经被丢弃,不做介绍)2,ty
阅读全文
摘要:FireFox1.firedebug(略)2.illuminations在illuminations页面可也看到缩写的extjs的代码,同时可以进行相应的调试3,Firedebug AutoCompleterfirefox中自带的智能感知智能在单行模式下运行,所以如果要在多行模式下调试可以安装:
阅读全文
摘要:1、差集( except )select a from t_aexceptselect a from t_b-- 也可写作:select a from t_a where a not in (select a from t_b)-- 多个字段时:select a,b from t_aexceptselect a,b from t_b-- 多字段的查集也可写成:select a,b from t_a where (a,b) not in (select a,b from t_b)2、交集(intersect )select a from t_aintersectselect a from t_b
阅读全文