使用history.back()进行返回时,有时会提示“网页已过期”,多数是因为目标页面的form为post提交方式,而且是表单已经提交后的响应页面,无法找到form中的具体参数,而“报错”。具体解决办法: 一、在要返回的目标页面中,添加 二、将目标页面的form的method="post"去掉,或...
分类:
编程语言 时间:
2014-07-16 23:15:03
阅读次数:
267
DebugerGreat questionsThese questions will solve most bugs:what method shows the symptom ? what lines of code produces that symptom ?what is the state...
分类:
编程语言 时间:
2014-07-16 23:13:29
阅读次数:
367
.NET下的23中设计模式。※创建型模式篇●单件模式(Single Pattern)●抽象工厂模式(Abstract Factory)●建造者模式(Builder Pattern)●工厂方法(Factory Method)●原型模式(Protype Pattern)※结构型模式篇●适配器模式(Ada...
分类:
Web程序 时间:
2014-07-10 11:11:42
阅读次数:
242
Java对大小写十分敏感运行时如果没有找到class,会出现NoClassDefFoundError的表达如果没有找到main method,会出现NoSuchMethodError的表达制作对话框:需要在JOptionPane class里用到showMessageDialog method .....
分类:
其他好文 时间:
2014-07-07 18:33:47
阅读次数:
166
A method is similar to a function – it takes arguments and returns a value – but the syntax is different. For example, the method upper takes a string...
分类:
其他好文 时间:
2014-07-07 15:42:12
阅读次数:
217
参考Babylonian method(x0 越接近S的平方根越好)class Solution {public: int sqrt(double x) { if(x == 0) return 0; double root = x/2, tolerance = 1....
分类:
其他好文 时间:
2014-07-07 14:08:29
阅读次数:
173
The following packages should be installed:scimscim-tables-zh (this includes Wubi input method)scim-tables-pinyin (this includes Pinyin input method)s...
分类:
系统相关 时间:
2014-06-30 13:18:56
阅读次数:
450
The following packages should be installed:python-ibusibusibus-clutteribus-gtkibus-m17n: input many non-latin charactersibus-pinyinibus-qt4ibus-tablei...
分类:
系统相关 时间:
2014-06-30 13:14:49
阅读次数:
455
什么是简单工厂模式?
从设计模式的类型上来说,简单工厂模式是属于创建型模式,又叫做静态工厂方法(Static Factory Method)模式,但不属于23种GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。简单工厂模式是工厂模式家族中最简单实用的模式,可以理解为是不同工厂模式的一个特殊实现。...
分类:
其他好文 时间:
2014-06-30 07:58:47
阅读次数:
152
刚从ruby转做java,分个活做照片上传,开始感觉很崩溃,以为本人菜鸟一个,一见到流什么的就感觉很牛逼的东西我怎么会啊,自学加百度,做出来了,两种方法完成,关于js预览就不上传了,留作以后备用,也能帮助下和我一样的菜鸟jsp页面<formaction="uploadPhoto.do"method="p..
分类:
编程语言 时间:
2014-06-29 21:02:48
阅读次数:
427