发送随机数手机验证码60秒倒计时 mm.mobileCheck = function(t){ var mobile = $("#user_mobile").val(); if(""===$.trim(mobile)){ ...
分类:
Web程序 时间:
2016-01-09 10:57:15
阅读次数:
202
****************时间调用函数setTimeout()setTimeout(function(){......},1000) ;//方法 - 多长时间后,执行衍生:无限循环var c=0;var t;function timedCount(){ alert(c); c=c+1; ...
分类:
其他好文 时间:
2016-01-09 10:53:33
阅读次数:
115
Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?Recursion:1 pub...
分类:
其他好文 时间:
2016-01-09 06:20:53
阅读次数:
403
Implement a stack with min() function, which will return the smallest number in the stack.It should support push, pop and min operation all in O(1) co...
分类:
其他好文 时间:
2016-01-09 06:17:21
阅读次数:
119
function GetIP(){ if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"])){ $cip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } elseif(!empty($_SERVER["HTTP_CLIENT_I...
分类:
Web程序 时间:
2016-01-09 06:15:55
阅读次数:
198
http://shengren-wang.iteye.com/blog/1343256javascript的Function属性:1、Arguments对象2、caller对调用单前函数的Function的引用,如果是顶层代码调用,则返回null(firefox返回undefined)。注:只有在代...
分类:
编程语言 时间:
2016-01-09 00:51:58
阅读次数:
222
readline用于创建一个从stream读取数据的接口VM提供了在应用中执行脚本的能力vm+readline 实现各简单的js执行命令行工具开发环境 : Node4.2.4 , 用了ES6 arrow function /let/const调试cmder'use strict'const read...
分类:
其他好文 时间:
2016-01-08 23:25:37
阅读次数:
244
jquery.datebox.js文件.(function($){ /** * create date box */ function createBox(target){ var state = $.data(target, 'datebox'); var opts = state.opt...
分类:
其他好文 时间:
2016-01-08 21:51:36
阅读次数:
640
given an integer,write a function to determine if it is a power of three.class Solution {public: bool isPowerOfThree(int n) { if(n<1) return...
分类:
其他好文 时间:
2016-01-08 20:06:05
阅读次数:
153
String.prototype.LTrim = function(){return this.replace(/(^s*)/g, "");}String.prototype.Rtrim = function(){return this.replace(/(s*$)/g, "");}String.p...
分类:
Web程序 时间:
2016-01-08 18:21:10
阅读次数:
242