摘要: //function kindly provided by phrogz at: //http://stackoverflow.com/questions/4576724/dotted-stroke-in-canvas var CP = window.CanvasRenderingContext2D && CanvasRenderingContext2D.prototype; if (CP && CP.lineTo) { CP.dashedLine = function (x, y, x2, y2, dashArray) { ... 阅读全文
posted @ 2014-02-13 11:27 博宏 阅读(306) 评论(0) 推荐(0) 编辑
摘要: table.js组件定义define(["dijit/registry", "dojo/_base/array", "dojo/dom",'dojo/_base/kernel', 'dojo/_base/loader'], function(registry,array, dom,dojo){ /** * 创建表格组件 * items 协议标准 * { * _header:"标题一", //表格标题 * _align:"right", //排列方式 目前排列方式 阅读全文
posted @ 2013-11-21 10:59 博宏 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 将上面代码复制到html中 阅读全文
posted @ 2013-10-31 16:05 博宏 阅读(213) 评论(0) 推荐(0) 编辑
摘要: (数据库没有指定路径导致的问题)发生系列如下1.解压完直接在dmd中执行命令后 输出如下 服务直接跳出终止---表示没有启动成功2.运行 mongo.exe 出现以下错误 表示没有连接上服务器解决办法-----mongod.exe 指定数据库路径启动方式:mongod --dbpath e:/mayi/mongodb/data 目录data文件是自己创建这样表示 服务启动成功重新启动一个新的CMD窗口启动mongo.exe表示成功 阅读全文
posted @ 2013-09-22 17:08 博宏 阅读(215) 评论(0) 推荐(1) 编辑
摘要: SELECT (PX/(AGFX+PG+ZF+QYZ+KZZ)) as MJB FROM(select case when PX is null then 0 else PX end as PX, case when AGFX is null then 0 else AGFX end as AGFX, case when PG is null then 0 else PG end as PG, case when ZF is null then 0 else ZF end as ZF, case when QYZ is null then 0 else QYZ end as QYZ, cas. 阅读全文
posted @ 2013-05-17 15:19 博宏 阅读(201) 评论(0) 推荐(0) 编辑
摘要: select * From (Select num=Row_number() Over(order By money desc),* From table1) A Where id= '430191'UNION select top 10 * From (Select num=Row_number() Over(order By money desc),* From table1) A 阅读全文
posted @ 2013-05-16 16:41 博宏 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 首先,两个下拉框,第一个下拉框首先load数据源,在select的事件中在load第二个数据源,这就是一个简单的二级联动的实现原理了.Js代码 // 第一个下拉框 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' }... 阅读全文
posted @ 2013-04-10 15:07 博宏 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: //放在onReady的function(){}中 Ext.QuickTips.init(); //为组件提供提示信息功能,form的主要提示信息就是客户端验证的错误信息。 Ext.form.Field.prototype.msgTarget='side'; //提示的方式,枚举值为: qtip-当鼠标移动到控件上面时显示提示; title-在浏览器的标题显示,但是测试结果是和qtip一样的; under-在控件的底下显示错误提示; side-在控件右边显示一个错误图标,鼠标指向图标时显示错误提示. 默认值; id-[element id]错误提示显示在指定id的HTML元件中 阅读全文
posted @ 2013-04-08 14:50 博宏 阅读(235) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws ClientProtocolException, IOException { String str = "http://www.baidu.com"; HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(str); try { List<BasicNameValuePair> params = new ArrayList<Bas... 阅读全文
posted @ 2013-04-07 22:10 博宏 阅读(204) 评论(0) 推荐(0) 编辑