2013年10月31日

Extjs4.1.x 框架搭建 采用 Application 动态按需加载 MVC 各模块完美实现

摘要: 摘自 : http://www.jb51.net/article/31928.htm 1 // 动态加载js模块,****重要 2 3 var application; 4 5 Ext.Loader.setConfig({ enabled: true }); 6 7 Ext.require([ 8 9 'Ext.app.Application',10 11 'Ext.app.Controller'12 13 ]);14 15 16 17 Ext.app.Controller.implement({18 19 //... 阅读全文

posted @ 2013-10-31 10:53 Livon 阅读(293) 评论(0) 推荐(0) 编辑

2013年10月22日

表:t_category - Oracle 11g 建表语句

摘要: 1 /* 2 Navicat Oracle Data Transfer 3 Oracle Client Version : 10.2.0.5.0 4 5 Source Server : 3.42 Oracle11g 6 Source Server Version : 110200 7 Source Host : 192.168.3.42:1521 8 Source Schema : DBUSER 9 10 Target Server Type : ORACLE 11 Target Server Version :... 阅读全文

posted @ 2013-10-22 08:42 Livon 阅读(471) 评论(0) 推荐(0) 编辑

2013年10月21日

使用 Javascript 代码,增加 HTML 新元素(节点)

摘要: 1 阅读全文

posted @ 2013-10-21 14:32 Livon 阅读(213) 评论(0) 推荐(0) 编辑

2013年10月18日

Kind Editor 笔记

摘要: 软件版本:kindeditor-4.1.9初始化的参数配置: 1 2 <strong>HTML内容</strong> 3 4 5 6 7 上传的图片、文件,保留原有文件名:修改 upload_json.jsp 文件,找到String newFileName = df.format(new Date()) + "_" + new Random().nextInt(1000) + "." + fileExt;修改成String newFileName = df.format(new Date()) + 阅读全文

posted @ 2013-10-18 18:04 Livon 阅读(519) 评论(0) 推荐(0) 编辑

2013年10月9日

[ 摘 ] 对 js 运算符 “||” 和 “&&” 的总结

摘要: from :http://jianguang-qq.iteye.com/blog/462449部分内容节选整理如下:需求:成长速度为 >12 显示 4 个箭头 ;成长速度为 >10 显示 3 个箭头 ;成长速度为 >5 显示 2 个箭头 ;成长速度为 >0 显示 1 个箭头 ;成长速度为 12 && 4 ) || ( add_step > 10 && 3 ) || ( add_step > 5 && 2 ) || ( add_step > 0 && 1 ) || 0 ;代码:var att 阅读全文

posted @ 2013-10-09 09:58 Livon 阅读(268) 评论(0) 推荐(0) 编辑

2013年8月31日

Oracle 的分页查询,myBatis 配置文件

摘要: 前端送的参数:start - 开始记录数,rowStart ,从 0 开始limit - 每页记录数,pageSize 1 2 3 阅读全文

posted @ 2013-08-31 16:06 Livon 阅读(596) 评论(0) 推荐(0) 编辑

2013年8月19日

ExtJS 的工具条及菜单

摘要: Efs Frame 中的下拉菜单: 1 2 3 "> 4 6 7 9 10 11 12 14 15 17 18 20 21 23 24 26 27 28 29 ... 阅读全文

posted @ 2013-08-19 10:00 Livon 阅读(361) 评论(0) 推荐(0) 编辑

2013年7月25日

发一个 ExtJS 4.2.0 的页面源码(规则比对公式 的设置页面)

摘要: 页面图:说明:这是一个 规则比对公式 的设置页面。双击规则行,则刷新规则项列表,双击规则项的行,则刷新项值列表。规则 - rule ; 规则项 - ruleItem ; 项值 - ruleItemValue 。三者均有查、增、改、删的功能。待完善:删除时,应该同时删除下级内容。jsp 文件: 1 2 3 4 5 16 17 25 26 27 28 29 30 31 32 33 34 35 48 49 50 51 规则管理页52 53 54 55 56 57 ... 阅读全文

posted @ 2013-07-25 09:24 Livon 阅读(649) 评论(0) 推荐(0) 编辑

MyBatis 中的 set 元素用法(MyBatis 3.1.1)

摘要: 现在的写法(A) 1 2 update t_rule_item 3 4 5 ruleId=#{ruleId}, 6 fieldName=#{fieldName}, 7 comment=#{comment}, 8 9 where id=#{id}10 原来的写法(B) 1 2 update t_rule_item 3 set id=#{id} 4 ... 阅读全文

posted @ 2013-07-25 09:17 Livon 阅读(1324) 评论(0) 推荐(0) 编辑

2013年7月22日

MySQL 存储过程,一个 4 层的游标,用于规则比对,不知道性能如何。

摘要: 1 BEGIN 2 #Routine body goes here... 3 4 -- 现可以限制 卡口及号牌 5 6 -- //定义变量 7 8 9 declare insertedDatetime TIMESTAMP ; 10 declare licenseNumber varchar(50) default '' ; 11 declare pointNumber varchar(50) default '' ; 12 13 declare cursorSurveil CURSOR... 阅读全文

posted @ 2013-07-22 18:50 Livon 阅读(443) 评论(1) 推荐(1) 编辑

导航