`
姜中秋
  • 浏览: 86156 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
window.open()支持环境:   JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+ 基本语法:   window.open(pageURL,name,parameters)   其中:   pageURL 为子窗口路径   name 为子窗口句柄   parameters 为窗口参数(各参数用逗号分隔)   window.open(url, name, features, replace)   Arguments - 参数  url   可选字符串参数,指向要在新窗口中显示的文档的URL。如果省略该参数,或者参数为空字符串,新窗口不会显示 ...
在拦截器中为session过期的请求设置一个应答状态 String head = request.getHeader("x-requested-with");//(获得extjs session过期值) if (head != null && !(head.equalsIgnoreCase("XMLHttpRequest"))) { if (userSession == null || (userSession.get("id")==null)) { // response.se ...
This tutorial will walk through out how to add a tooltip to a Grid Header. This feature is not natively supported by Ext JS 4 API. Fortunately,  there is a third-party plugin we can use to do it. To get started, I created a JavaScript project on Eclipse IDE and it looks like this: Plugin Code Th ...
mongodb安装(win32) 一:官网下载win32最新版mongo压缩包 二:解压到c盘,改名mongo 三:在mongo文件夹下创建logs文件夹,logs里面创建mongodb.log文件 四:打开控制台,进入c:\mongo\bin,输:c:\mongo\bin\mongod --dbpath=c:\db 五:设置日志文件 输入:c:\mongo\bin\mongod --dbpath=c:\db --logpath=c:\mongo\logs\mongodb. log --install 六:启动mongo服务:net start mongodb 七:进入test库:mongo
在使用struts2框架开发一个办公OA系统时候,需要使用到权限控制 除了判定是否登陆之外,还必须对每个action的访问实现权限控制,因为如果用户登陆成功了,而且以前拥有某个权限的访问,记录下访问的action,而现在没有权限了,也能直接在地址栏输入action路径直接访问,这将使权限这一模块毫无用处。 因为没有用到命名空间,这里对于涉及命名空间的没有控制 解决思路:【先看这个,懂了以下代码就明白了】     我们知道struts2的拦截器可以很方便实现对action的访问拦截,先行判断然后再决定是否能够访问。我的实现方法是:     1.左侧菜单的树形每一列对应一个子模块,也对应 ...
一:延时加载 定义一个BottomTree Ext.define('LP.view.tree.BottomTree', { extend : 'Ext.tree.Panel', alias : 'widget.BottomTree', dock : 'bottom', id:"BottomTree", rootVisible : false, store : 'LP.store.tree.BottomTreeStore', initComponent : function() { var me = this ...
Extjs 角角落落整理(一)MVC模式 Extjs的MVC结构 app    controller    model    store    util    view    app.js    index.html app是整个项目的根目录 controller放置ext的控制器,处理业务 model放置一些模型,这个与下面的store是关联的(要在contoreller定义) store放置grid等组件的store(要在contoreller定义) util放置帮助文件,主要是一些公共方法抽取放到util里面(要在contoreller注明) view放置视图组件比如window、gr ...
实际应用 Extjs4、struts2 Extjs处理业务逻辑 struts2仅仅负责传递数据 示例: struts2方法 public String saveIndex(){ HttpServletResponse response = ServletActionContext.getResponse(); HttpServletRequest request = ServletActionContext.getRequest(); String queryParam = request.getParameter("param") ...
需求:tabpanel title不固定以及title加tooltip 实现:在相对应的组件(比如某个tabpanel的组件可能是grid)写其“beforerender”的监听方法 'beforerender':function(){ var search_title = $('#search_hidden').val().replace('INV_keyword=','INV=').replace('PA_keyword=','PA='); result_title = "<div data-qtip='" ...
索引能提高检索数据的速度,你可以想像成在MySQL中创建索引一样,同样索引也是用B-Tree也实现的。 1.单列索引 在字段x上创建索引,1 (ascending) or -1 (descending) > db.data.ensureIndex({x:1})  显示表data里面的所有索引 > db.data.get ...
在前面的文章“mongodb 查询的语法”里,我介绍了Mongodb的常用查询语法,Mongodb的update操作也有点复杂,我结合自己的使用经验,在这里介绍一下,给用mongodb的朋友看看,也方便以后自己用到的时候查阅: 注:在这篇文章及上篇 ...
在前面的文章“mongodb 查询的语法”里,我介绍了Mongodb的常用查询语法,Mongodb的update操作也有点复杂,我结合自己的使用经验,在这里介绍一下,给用mongodb的朋友看看,也方便以后自己用到的时候查阅: 注:在这篇文章及上篇 ...
目录操作: rm -rf mydir /*删除mydir目录*/ mkdir dirname /*创建名为dirname的目录*/ cd mydir /*进入mydir目录*/ cd - /*回上一级目录*/ cd .. /*回父目录,中间有空格*/ cd ~ /*回根目录*/ mv tools tool /*把tools目录改名为tool */ ln -s tool bac /*给tool目录创 ...
Struts2 + jQuery 实现ajax 使用这个组合,感觉还是很方便灵活的。 1、将struts2的json插件加入web工程的lib,jsonplugin的下载地址:http://code.google.com/p/jsonplugin/downloads/list 2、struts.xml添加专为ajax使用的package <package name="ajax" extends="json-default">         <action name="ajaxRequest"            ...
直接上代码 var tree = Ext.create('Ext.tree.Panel', { title : 'Simple Tree', width : 200, height : 250, queryMode : 'local', id : 'treePanel-id', store : store, rootVisible : false, listeners : { 'itemclick' : function(view, record, items, index, e) { alert(items); i ...
Global site tag (gtag.js) - Google Analytics