摘要: <script src="prototype.js"></script> <script src="jquery.js"></script> <script> jQuery.noConflict(); // Use jQuery via jQuery(…) jQuery(document).ready(function(... 阅读全文
posted @ 2010-01-29 16:49 朗笑江湖 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 在struts2中需要做国际化的有:jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过view plaincopy to clipboardprint? <constantname="struts.custom.i18n.resources"value="message">... 阅读全文
posted @ 2010-01-14 11:40 朗笑江湖 阅读(24048) 评论(0) 推荐(4) 编辑
摘要: Ctrl+m+Crtr+o折叠所有大纲Ctrl+M+Crtr+P: 停止大纲显示Ctrl+K+Crtr+C: 注释选定内容Ctrl+K+Crtr+U: 取消选定注释内容Ctrl+J : 列出成员 智能感知Shift+Alt+Enter: 切换全屏编辑Ctrl+Shift+空格键F12: 转到所调用过程或变量的定义Ctrl+Tab: 活动窗体切换Ctrl+Shift+N: 新建项目Shift+Alt... 阅读全文
posted @ 2009-12-18 14:29 朗笑江湖 阅读(221) 评论(0) 推荐(0) 编辑
摘要: function CallBackObject(){this.XmlHttp = this.GetHttpObject();}CallBackObject.prototype.GetHttpObject = function() //动态为CallBackObject的原型添加了GetHttpObject共有方法{//第一步:创建XMLHttpRequest对象//进行兼容性判断var xmlht... 阅读全文
posted @ 2009-12-18 14:06 朗笑江湖 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 动态创建DIV:vardiv=document.createElement("div");设置div属性及样式等:div.title="thisisanewdiv."; div.class="newDivClass";  div.innerHTML="Testcreateadivelement!";div.style.styleFloat="left";div.style.overflow="h... 阅读全文
posted @ 2009-12-18 11:49 朗笑江湖 阅读(12264) 评论(0) 推荐(0) 编辑
摘要: 兼容性处理要点1、DOCTYPE 影响 CSS 处理2、FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 width3、FF: 支持 !important, IE 则忽略, 可用 !important 为 FF 特别设置样式4、div 的垂直居中问题: vertical-align:mi... 阅读全文
posted @ 2009-12-17 14:02 朗笑江湖 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 一、document.formName.item(”itemName”) 问题问题说明:IE下,可以使用 document.formName.item(”itemName”) 或 document.formName.elements ["elementName"];Firefox 下,只能使用document.formName.elements["e... 阅读全文
posted @ 2009-12-17 13:56 朗笑江湖 阅读(477) 评论(1) 推荐(0) 编辑
摘要: 【台湾】良葛格學習筆記:(总览页面)http://caterpillar.onlyfun.net/Gossip/【台湾】良葛格--Struts學習筆記!http://caterpillar.onlyfun.net/Gossip/Struts/StrutsGossip.htm【台湾】良葛格--Spring學習筆記!http://caterpillar.onlyfun.net/Gossip/Sprin... 阅读全文
posted @ 2009-12-15 09:23 朗笑江湖 阅读(318) 评论(0) 推荐(0) 编辑
摘要: [TestFixture] public class Class1 { [TestFixtureSetUp] //程序开始运行时,只执行一次,如打开数据库等操作。 public void OpenConnection() { Console.WriteLine("OpenConnection"); } [TestFixtureTearDown] //程序停止运行时,只执行一次,如关闭数据库等操作... 阅读全文
posted @ 2009-12-12 01:04 朗笑江湖 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 在ajax的已不请求中,常常返回json对象。可以利用json.net给我们提供的api达到快速开发。B.cs    public class B    {      public B(){}      private int money = 0;     private string name = string.Empty;     public int Money      {       ... 阅读全文
posted @ 2009-12-11 23:55 朗笑江湖 阅读(10057) 评论(2) 推荐(0) 编辑