使用history.back()进行返回时,有时会提示“网页已过期”,多数是因为目标页面的form为post提交方式,而且是表单已经提交后的响应页面,无法找到form中的具体参数,而“报错”。具体解决办法: 一、在要返回的目标页面中,添加 二、将目标页面的form的method="post"去掉,或...
分类:
编程语言 时间:
2014-07-16 23:15:03
阅读次数:
267
某些手机底部是在触摸屏内部有软按键,就是如(back,home,menu 等)而有的手机底部(非屏幕内部)有物理按键,就是生产厂商不愿意有google自带的虚拟按键,而做的电容式的物理按键,如(back,home,menu 等)android4.0下可以用此判断是否有物理按键:ViewConfigu...
分类:
移动开发 时间:
2014-07-07 10:11:59
阅读次数:
221
1 @Override2 public boolean onKeyDown(int keyCode, KeyEvent event) {3 if (keyCode == KeyEvent.KEYCODE_BACK) {4 moveTaskToBack(...
分类:
移动开发 时间:
2014-07-03 20:03:49
阅读次数:
247
Substrings
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You are given a string S which cons...
分类:
其他好文 时间:
2014-07-03 16:52:59
阅读次数:
166
上次看到这个有点晕了,其实这个vector保存的是std::vector#include #include using namespace std;int main(){ std::vector > num; std::vector a(10, 5); num.push_back(...
分类:
其他好文 时间:
2014-07-02 20:14:53
阅读次数:
182
function next(){//前进window.history.forward();}function previous(){//后退window.history.back();}function jump(){//指定前进或后退页面数var num = document.getElement...
分类:
其他好文 时间:
2014-07-02 10:18:47
阅读次数:
215
difkstra + 路径输出
The Toll! Revisited
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit] [Go Back] [Status]
Description
Probl...
分类:
其他好文 时间:
2014-07-02 09:30:51
阅读次数:
371
关于回调: 回调是观察者模式以及反应堆模式的基础 一句话,回调就是一种双向调用模式,什么意思呢,就是说,被调用方在被调用时也会调用对方,这就叫回调。“If you call me, i will call back”。 先看看这个可以说比较经典的使用回调的方式: 背景1:class A 实...
分类:
其他好文 时间:
2014-07-01 12:14:40
阅读次数:
198
class Solution {public: vector > generate(int numRows) { vector > res; if (numRows row(1, 1); res.push_back(row); ...
分类:
其他好文 时间:
2014-06-30 21:46:08
阅读次数:
256
JAVA大数....
a^b-b^a
Time Limit: 250MS
Memory Limit: 4096KB
64bit IO Format: %I64d & %I64u
[Submit] [Go Back]
[Status]
Description
You are gi...
分类:
其他好文 时间:
2014-06-30 19:35:34
阅读次数:
296