12 2012 档案
摘要:直接贴代码: 1 using System; 2 using System.Data; 3 using System.Text; 4 using System.Collections.Generic; 5 using System.Reflection; 6 7 namespace PowerCheck.Tools 8 { 9 10 public class ToJson 11 { 12 public ToJson() 13 { 14 15 } 16 public static string...
阅读全文
摘要:比如我们有新闻页:/news/readmore.php?id=4875我们要做成静态页:/news/top2007,4875.html一 打开 apache 的配置文件 httpd.conf 。二 将#loadmodule rewrite_module modules/mod_rewrite前面的#去掉三 在 httpd.conf中添加:<ifmodule mod_rewrite.c>RewriteEngine OnRewriteRule /news/top2007,(\d+).html$ /news/readmore\.php\?id=$1</ifmodule>转:h
阅读全文
摘要:gantt.js 1 /// 2 Ext.ns('App'); 3 4 var dateNow = new Date(); 5 var yearNow = dateNow.getFullYear(); 6 var monthNow = 0; 7 var dayNow = 1; 8 //Ext.Loader.setConfig({enabled: true, disableCaching : false }); 9 //Ext.Loader.setPath('Sch', 'http://www.cnblogs.com/../ExtScheduler2.x/
阅读全文
摘要:1.Ext.MessageBox.alert()方法 有四个参数,为简单起见,主要介绍前面三个参数:alert( title , msg , function(){} )其中title,msg为必选参数,function为可选参数,在关闭弹出窗口后触发。Ext.MessageBox.alert("title","msg");Ext.MessageBox.alert("title","msg",function(){alert("关闭对话框后弹出!")});2.Ext.MessageBox.con
阅读全文
摘要:这些天一直在研究前台表格展示数据,之前的mutline也可以使用,但是在好奇心的驱使下,还是做了一些尝试! 首先看看做出来后的效果图附上源码文件 subgrid.jsp <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="t
阅读全文
摘要:Ext.data.Store的基本用法在使用之前,首先要创建一个Ext.data.Store的实例,如下面的代码所示。 1 var data = [ 2 ['boy', 0], 3 ['girl', 1] 4 ]; 5 6 var store = new Ext.data.Store({ 7 proxy: new Ext.data.MemoryProxy(data), 8 reader: new Ext.data.ArrayReader({}, PersonRecord) 9 }); 10 11 store...
阅读全文
摘要:1 Ext.create("Ext.grid.Panel", { 2 title: "userInfo", 3 store: Ext.data.StoreManager.lookup("userInfoStore"), 4 columns: [ 5 { header: "UserName", dataIndex: "UserName", flex: 1 }, 6 { header: "...
阅读全文
摘要:1.服务器数据作为ComboBox的数据源 实例首先从服务器获取json数据://cs后台代码,简单起见,示例而已,要主要字符串格式(新手注意,下面的代码放在类里面,不是放在方法里)publicstringServerData=”['湖北','江西','安徽']“;//前台js介绍代码Ext.onReady(function(){varcombo=newExt.form.ComboBox({store:<%=ServerData%>,//获取ServerData的string值, 不要用”"引起来,否则就不是object数据
阅读全文
摘要:今日微软终于发布了IE10 For Windows 7 版本的下载,由于该版本为预览版(Release Preview),虽然安装以后可以使用到 IE10 的新功能,包括增强的安全性和性能,但与使用早期的 IE 浏览器版本相比,可能会遇到更多的错误。如果你安装 IE10 以后遇到了一些错误或问题,导致你无法正常的使用,或者你改变想法,认为 IE10 不适合自己,你可以随时卸载它,卸载以后即可还原到安装IE10之前的IE浏览器版本。卸载方法也非常简单,跟我们之间介绍卸载IE9的方法相同,操作如下:1、单击“开始”按钮,在搜索框中输入“卸载”,然后在搜索结果中单击“卸载程序”。2、在打开的“程序和
阅读全文