做页面预览的时候,数据没有存入数据库,但是要打开一个页面进行预览,询问众大婶,原来是这样来做。
1、父页面预览 2、子页面,也就是a.html获取父页面中文本框的value$(function(){
console.info(window.opener.document.ge...
分类:
Web程序 时间:
2014-05-15 14:32:30
阅读次数:
478
POJ2533#include #include #define max(a, b)
(((a) > (b)) ? (a) : (b))void GetMaxIncLen(int *data, int *maxLen, int
size){ int i, j; for(i = 2; i max) ....
分类:
其他好文 时间:
2014-05-15 13:52:57
阅读次数:
259
php5.3版本之后不再支持ZendOptimizer,改为更为先进的zend guard
loader,判断运行环境是否支持zend guard loader加密解析$PHP_VER = PHP_VERSION; $ZEND_VER =
zend_version();if( $PHP_VER < ...
分类:
Web程序 时间:
2014-05-15 09:42:28
阅读次数:
420
输入输出重定向1,输入输出重定向,是针对过滤器的,不针对,编辑器和交互工具2,>号只把正确的标准输出重定向,输出错误信息,可以用2>3,新建或清空文件可以直接用>filename,>和2>都会清空目标文件4,&>号可以把正确信息和错误信息全部输出重定向65,>>可以把重定向追加到目标文件6,a.tx...
分类:
系统相关 时间:
2014-05-15 09:27:22
阅读次数:
367
当客户端请求速度远远大于服务端的处理速度,这时候就非常适合使用GuardedSuspention模式packagecn.fcl.guardendSuspension;
importjava.util.ArrayList;
importjava.util.List;
publicclassRequestQueue{
privateList<Integer>integers=newArrayList<Integer>();
..
分类:
编程语言 时间:
2014-05-15 09:08:21
阅读次数:
283
<scripttype="text/javascript">document.onselectstart=function(){returnfalse;}</script>
分类:
Web程序 时间:
2014-05-15 09:01:32
阅读次数:
258
深入广播单向群发,只要过滤条件匹配,都能接收到无序广播有序广播发送有序广播sendOrderedBroadcast(intent,null);//发送有序广播设置优先级:android:priority="1000"拦截:在高优先级的那边进行拦截//拦截广播abortBroadcast();拦截短信权限<uses-permissionandroid:name..
分类:
其他好文 时间:
2014-05-15 08:48:04
阅读次数:
290
#include
#include
using namespace std;
class Base
{
public:
Base(){}
~Base(){}
public:
virtual void f1(int x){ cout "baseclass: f1() " x << endl; }
virtual void f2()final{ cout "baseclass: f2() "...
分类:
编程语言 时间:
2014-05-15 08:11:39
阅读次数:
271
【题目】
A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S <
100 000 000) are given. Write a program to find the minimal length of the subse...
分类:
其他好文 时间:
2014-05-15 07:58:17
阅读次数:
329
算法原理:
第一趟:从j=0开始,比较相邻的两个数a[j]和a[j+1],如果a[j]>a[j+1],则交换他俩的位置,这样会将大的数放在后面。每比较一次让j++,当j=length-1时终止。
这样一趟走完,最后面的数应该是最大数。
那么第二趟,还是从0开始,只不过这次j的终止条件是j=length-2。第二趟走完,最后两个数应该是数组中最大的两个数并且有序排列。
重复若干趟,直到j的终...
分类:
其他好文 时间:
2014-05-15 07:56:49
阅读次数:
238