博客【张光见】

胸纳幽兰,神容略若---张若兰

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2008年7月29日 #

摘要: xmlhttp.open("POST",uploadURL, false); 时IE出现权限不够的提示脚本错误, 将uploadURL所在站点和本APP所在站点加入信任站点,然后在此栏的【安全】【自定义级别】中启用【其他】栏中的【通过域访问数据】 【】 阅读全文
posted @ 2008-07-29 11:40 willpower 阅读(797) 评论(0) 推荐(0) 编辑

2008年7月24日 #

摘要: 转载: IoC与DI 首先想说说IoC(Inversion of Control,控制倒转)。这是spring的核心,贯穿始终。所谓IoC,对于spring框架来说,就是由spring来负责控制对象的生命周期和 对象间的关系。这是什么意思呢,举个简单的例子,我们是如何找女朋友的?常见的情况是,我们到处去看哪里有长得漂亮身材又好的mm,然后打听她们的兴趣爱 好、qq号、电话号、ip号、iq号... 阅读全文
posted @ 2008-07-24 11:14 willpower 阅读(841) 评论(0) 推荐(0) 编辑

2008年7月23日 #

摘要: package com.softeem.demo; /** *@authorleno *动物的接口 */ interface Animal { publicvoid eat(Food food); } /** *@authorleno *一种动物类:猫 */ class Cat implements Animal { publicvoid eat(... 阅读全文
posted @ 2008-07-23 18:29 willpower 阅读(1248) 评论(0) 推荐(0) 编辑

2008年7月22日 #

摘要: 依次选择菜单"window">>"preferences">>"general">>"content types" 在右边的窗口中打开列表,选中"JavaScript",在下面的"default encoding"右边的输入框中输入"GBK"或"GB2312"再点"update"按钮。 一般选择"GBK" 阅读全文
posted @ 2008-07-22 14:45 willpower 阅读(310) 评论(1) 推荐(0) 编辑

2008年7月20日 #

摘要: using System; using System.Text; using Microsoft.SharePoint; using System.Data.SqlClient; namespace EventHandle { public class listEventHandle : IListEventSink { public void OnEvent(SPLi... 阅读全文
posted @ 2008-07-20 21:31 willpower 阅读(288) 评论(0) 推荐(0) 编辑

2008年7月18日 #

摘要: SqlRowSet rs=jdbcTemplate.queryForRowSet(sql); int i=1; while(rs.next()) { question+=i+":"+rs.getString(2)+rs.getString(3)+"\n"; i++; } 阅读全文
posted @ 2008-07-18 18:32 willpower 阅读(383) 评论(0) 推荐(0) 编辑

摘要: mysql 中 select ifnull(null,'') 相当于ORACLE isnull(exp,'') 阅读全文
posted @ 2008-07-18 17:45 willpower 阅读(3912) 评论(0) 推荐(0) 编辑

2008年7月16日 #

摘要: 今天帮助下属调试程序,发现一个奇怪问题,感觉很好笑,呵呵。。 sql="select count(*) from ...." 本来这条语句的结果是4 jdbcTemplate.queryForInt(sql) 总是为0 改成 sql="select count(*) t from ...." jdbcTemplate.queryForInt(sql) 结果正确。 阅读全文
posted @ 2008-07-16 16:08 willpower 阅读(3365) 评论(3) 推荐(0) 编辑

摘要: 将oledb读取的excel数据快速插入的sqlserver中,很多人通过循环来拼接sql,这样做不但容易出错而且效率低下,最好的办法是使用bcp,也就是System.Data.SqlClient.SqlBulkCopy 类来实现。不但速度快,而且代码简单,下面测试代码导入一个6万多条数据的sheet,包括读取(全部读取比较慢)在我的开发环境中只需要10秒左右,而真正的导入过程只需要4.5秒。 ... 阅读全文
posted @ 2008-07-16 10:49 willpower 阅读(527) 评论(0) 推荐(0) 编辑

2008年7月8日 #

摘要: 选择自 oyiboy 的 Blog 清除showModalDialog弹出页面的缓存:在页面后面加上一个随机参数, .jsp?Random=&id=1 一、showModalDialog和showModelessDialog有什么不同? showModalDialog:被打开后就会始终保持输入焦点。除非对话框被关闭,否则用户无法切换到主窗口。类似alert的运行效果。 showM... 阅读全文
posted @ 2008-07-08 14:40 willpower 阅读(254) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页