浏览器处于安全策略考虑,只允许Javascript关闭由javascript打开的页面,为了用js关闭当前窗口,我们可以这么考虑,这也是最常用的做法。fdsafasfunction
xx(){ // 重置window.opener用来获取打开当前窗口的窗口引用 // 这里置为null,避免I...
主键约束(Primary Key
Constraints):不能在允许NULL值的列上定义主键约束。 ALTER TABLE dbo.test ADD CONSTRAINT PK_test
PRIMARY KEY(testid);唯一约束(Unique Constraints):唯一约束用来保...
分类:
其他好文 时间:
2014-07-22 23:09:33
阅读次数:
347
time_t first, second;first = time(NULL);// 你的程序
...............second = time(NULL);printf("The difference is: %f
seconds\n",difftime(se...
分类:
其他好文 时间:
2014-07-22 23:08:54
阅读次数:
216
Given a strings, partitionssuch that every
substring of the partition is a palindrome.Return all possible palindrome
partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-07-22 23:08:15
阅读次数:
446
java.lang.IllegalStateException: Target host
must not be null, or set in parameters.
原因:连接地址不完整,必须加上"http://"。========================================...
分类:
移动开发 时间:
2014-07-22 23:08:12
阅读次数:
415
1. 指针使用2. 在循环体内使用 return 的坏处3. quick and dirty,
performance and design strategy
分类:
编程语言 时间:
2014-07-22 23:06:33
阅读次数:
356
一个通常的函数调用的例子://声明(一般头文件中)void MyFun(int x);
//此处的申明也可写成:void MyFun( int );int main(int argc, char* argv[]){ MyFun(10);
//这里是调用MyFun(10);函数 return 0;}v...
分类:
其他好文 时间:
2014-07-22 23:06:16
阅读次数:
239
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
Given a strings, partitionssuch that every
substring of the partition is a palindrome.Return the minimum cuts needed for a
palindrome partitioning ofs...
分类:
其他好文 时间:
2014-05-01 14:47:09
阅读次数:
409
public DateTime? StatusDateTime =
null;脑子便也出现个问号,这是什么意思呢?网上搜下,总结如下:1.
可空类型修饰符(?):引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。例如:string str=null; 是正确的,int
i=null...
分类:
其他好文 时间:
2014-05-01 14:46:33
阅读次数:
347