/*父类 Person*/function Person(name,age){ this.name=name; this.age=age;}Person.prototype.showName=function(){ this.name;};Person.prototype.showAge=fu...
分类:
其他好文 时间:
2015-12-20 17:10:26
阅读次数:
127
源代码展示其中HTML结构如下:垃圾箱 列表1 列表2 列表3 列表4 列表5 列表6JS代码如下:var $ = function(selector) { /*简单的选择器方法*/ ...};var eleDustbin = $(".dustbin"...
eventTester=function(e){Media.addEventListener(e,function(){console.log((newDate()).getTime(),e);});}eventTester("loadstart");//客户端开始请求数据eventTester("...
分类:
Web程序 时间:
2015-12-20 15:59:15
阅读次数:
249
Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2015-12-20 14:32:37
阅读次数:
180
/** * 删除文件夹及其文件夹下所有文件 */ public static function deldir($dir) { //先删除目录下的文件: $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $...
分类:
其他好文 时间:
2015-12-20 12:59:15
阅读次数:
138
1.在jsp中使用jsp表达式在input标签中时,避免直接和结束"/"相连2.提取input select 标签内的内容,使用...value提取其值3.form中含有一个onsubmit的属性4.事件触发函数 onxxxxx = "return function()";function 返回tr...
分类:
Web程序 时间:
2015-12-20 11:46:25
阅读次数:
170
Str 函数 Visual Studio 2005 返回数字的 String 表示形式。Public Shared Function Str(ByVal Number As Object) As String参数Number 必选。包含任何有效的数值表达式的 Object。异常异常类型错误号条件Ar...
分类:
其他好文 时间:
2015-12-20 09:17:45
阅读次数:
177
Given an integer, write a function to determine if it is a power of two.还是有一个地方不小心:Integer.MIN_VALUE, 应该是false,但是因为只有一个1,我曾经判断为true。事实上,所有negative val...
分类:
其他好文 时间:
2015-12-20 07:03:54
阅读次数:
195
class memcache_helper extends memcache { private $host = "127.0.0.1"; private $port = "11211"; public function __construct() { $ret = ...
分类:
系统相关 时间:
2015-12-20 00:36:03
阅读次数:
201
22. Generate ParenthesesTotal Accepted:70039Total Submissions:203043Difficulty:MediumGivennpairs of parentheses, write a function to generate all comb...
分类:
其他好文 时间:
2015-12-19 23:06:33
阅读次数:
227