使用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
var myApp = angular.module('myApp', []);//service style, probably the simplest onemyApp.service('helloWorldFromService', function() { this.sayHello...
分类:
其他好文 时间:
2014-07-10 11:35:35
阅读次数:
390
.NET下的23中设计模式。※创建型模式篇●单件模式(Single Pattern)●抽象工厂模式(Abstract Factory)●建造者模式(Builder Pattern)●工厂方法(Factory Method)●原型模式(Protype Pattern)※结构型模式篇●适配器模式(Ada...
分类:
Web程序 时间:
2014-07-10 11:11:42
阅读次数:
242
设计模式 创建型模式1.创建型模式 创建型模式,包括了5种设计模式,分别是 Singleton (单例模式),Factory(工厂模式),AbstractFactory(抽象工厂模式),Builder(创建者),Prototype(原型) ,创建型模式主要作用就是抽象了实例化过程。他们帮助一个系统独...
分类:
其他好文 时间:
2014-07-10 00:50:26
阅读次数:
275
Java对大小写十分敏感运行时如果没有找到class,会出现NoClassDefFoundError的表达如果没有找到main method,会出现NoSuchMethodError的表达制作对话框:需要在JOptionPane class里用到showMessageDialog method .....
分类:
其他好文 时间:
2014-07-07 18:33:47
阅读次数:
166
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