1 window事件2
window.onload=function(){alert("页面创建中****");};3
window.onunload=function(){alert("页面卸载中****");};4 window.onbefor...
分类:
Web程序 时间:
2014-05-09 04:34:03
阅读次数:
397
http://rubyer.me/blog/1682/遇到的问题:1、reason given by
server: Permission
denied在服务器的/etc/export配置文件中加上”no_root_squas”。因为默认为”root-squas”,即默认客户端的root会被映射成匿...
分类:
系统相关 时间:
2014-05-09 03:12:23
阅读次数:
306
什么是跨域1、document.domain+iframe的设置2、动态创建script3、利用iframe和location.hash4、window.name实现的跨域数据传输5、使用HTML5
postMessage6、利用flash本文来自网络(http://f2e.me/200904/cr...
分类:
编程语言 时间:
2014-05-08 14:04:18
阅读次数:
517
http://blog.panks.me/posts/2013/11/install-gdb-on-os-x-mavericks-from-source/注意最后两步:killall
taskgated (不行可以加sudo)codesign -fs gdbc /usr/local/bin/gdb ...
分类:
数据库 时间:
2014-05-08 13:53:15
阅读次数:
304
flash 代码//写到要响应的方法体中import
flash.external.ExternalInterface;ExternalInterface.call("alert",ExternalInterface.call("aa"));页面的jsfunction
aa() { var a=n....
分类:
Web程序 时间:
2014-05-08 11:26:59
阅读次数:
408
Help Me Escape
Time Limit: 2 Seconds Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto the...
分类:
其他好文 时间:
2014-05-08 01:37:02
阅读次数:
353
困惑一:先看一个例子:function test(){
message = "hi";
}
test();
alert(message);会输出字符串“hi"在函数内部使用var定义的变量是局部变量,省略var操作符的变量是全局变量。困惑二:alert(undefined == null)结果是”true"我们知道在js中分为基本类型和引用类型,基本类型包括number、string、boole...
分类:
编程语言 时间:
2014-05-07 23:20:30
阅读次数:
361
jQuery自定义了jQuery.extend()和jQuery.fn.extend()方法.其中jQuery.extend()方法能够创建全局函数或者选择器,而jQuery.fn.extend()方法能够创建jQuery对象方法.
例如:
jQuery.extend({
showName : function(name){
alert(name)
}...
分类:
Web程序 时间:
2014-05-07 15:16:06
阅读次数:
282
与操作字符串有关的最后一个方法是localeCompare(),这个方法比较两个字符串,按照字符串的字母表中的位置分别返回-1,0,1var
stringValue="yellow";alert(stringValue.localeCompare("brick"));
//1alert(strin....
分类:
编程语言 时间:
2014-05-07 14:23:09
阅读次数:
365
很多话说得很透彻,把一些觉比较精彩的摘抄一下。... It seems to me that if
the authors I studied were writing today, they would agree with the following
characterization: Scie...
分类:
其他好文 时间:
2014-05-07 12:57:54
阅读次数:
491