1 function createCORSRequest(method, url){ 2 var xhr = new XMLHttpRequest(); 3 4 if("withCredentials" in xhr){ 5 xhr.open(me...
分类:
其他好文 时间:
2014-06-27 22:02:10
阅读次数:
159
org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested add...
分类:
编程语言 时间:
2014-06-27 00:14:10
阅读次数:
494
在算法分析中,当一个算法中包含递归调用时,其时间复杂度的分析会转化为一个递归方程求解。实际上,这个问题是数学上求解渐近阶的问题,而递归方程的形式多种多样,其求解方法也是不一而足,比较常用的有以下四种方法: (1)代入法(Substitution Method) 代入法的基本步骤是先推测递归方程的显式...
分类:
其他好文 时间:
2014-06-26 23:45:39
阅读次数:
282
This post introduces how to limit the access scope of the field and method of the object.
分类:
编程语言 时间:
2014-06-26 23:10:37
阅读次数:
418
<body
<formaction=""method="post"
name="form1">
<inputtype="text"id="id"/>
</form>
</body>
<script>functionmyfocus(){
document.getElementById(‘id‘).focus();}</script>
分类:
Web程序 时间:
2014-06-25 10:11:17
阅读次数:
181
在确定环境变量配置正确(命令行运行make成功)的情况下,如果使用Eclipse编译C程序,控制台报告Cannotrunprogram"make":?????"?错误,那么很有可能的错误是org.eclipse.cdt.core.win32_5.2.0.201202111925(Eclipse的plugin目录下)出现了错误。可以通过替换或者重新安装CDT来..
分类:
系统相关 时间:
2014-06-25 10:09:25
阅读次数:
365
/**
* Method 1: Delete the input element x
* and meanwhile keep the length of array after deleted n
* @param a the array
* @param n the length of array after deleted.
* @param x the element t...
分类:
其他好文 时间:
2014-06-25 08:27:27
阅读次数:
171
attribute method:
#include
struct packed
{
char a;
int b;
} __attribute__((packed));
struct not_packed
{
char a;
int b;
};
int main(void)
{
printf("Packed: %zu\n", sizeof(...
分类:
其他好文 时间:
2014-06-25 07:29:49
阅读次数:
155
os严格上是软件,为计算机提供资源和app运行环境. 特称为内核.
内核的接口被成为system call;然后库函数对system call进行了封装;shell是特殊app,为运行其他程序提供了一个接口.
shell是个命令行解释器,读取输入,执行命令.
unix文件系统是由directory和file组成.目录起点成为root,名字是/.
文件属性指类型\大小\所有者\权限以及修改时...
分类:
其他好文 时间:
2014-06-25 07:03:11
阅读次数:
292
"Could not find SQL statement to include with refid xxx"A: 认真把每个用到xxx的地方都看一遍
分类:
数据库 时间:
2014-06-25 00:58:20
阅读次数:
216