原文:【javascript基础】8、闭包前言函数和作用域啥的我们前面已经了解了,现在就要学习闭包了,这是一个挺晦涩的知识点,初学者可能会感觉不好理解,但是高手都不不以为然了,高手就给我提点意见吧,我和新手一起来学习什么是闭包。例子先不说定义,先看一个题,看看大家能得出正确的结果不,function...
分类:
编程语言 时间:
2014-06-11 08:08:53
阅读次数:
318
//js端function
println(string){ document.write(string+""); }//html端
分类:
其他好文 时间:
2014-06-10 00:10:30
阅读次数:
196
原文:js小记 function 的 length 属性[1,2,3].length可以得到
3,"123".length 也可以得到 3,这个略懂js的都知道。但是
eval.length,RegExp.length,"".toString.length,1..toString.length会得到...
分类:
Web程序 时间:
2014-06-09 23:51:16
阅读次数:
370
今天写代码遇到这样一个问题,先上代码 1 2 function textout(obj){ 3
if(opac==60){opac=0;return;}; 4 opac+=10; 5 if(document.all){ 6
obj.style.filter=...
分类:
Web程序 时间:
2014-06-08 06:23:46
阅读次数:
277
Follow up for "Search in Rotated Sorted
Array":What ifduplicatesare allowed?Would this affect the run-time complexity?
How and why?Write a function to...
分类:
其他好文 时间:
2014-06-08 01:19:29
阅读次数:
320
//加载数据workflowName onloadmyCgxList: function (id) {
if (id != null && id != "" && typeof (id) != "undefined") { var
param = { "ID": id } $("#myCgxLi.....
分类:
其他好文 时间:
2014-06-08 00:29:54
阅读次数:
296
/*** author geksong * function 中文字符串相关操作**/public
class ChinaStringUtil {/** * 判断字符是不是中文字符 * @param c * @return */public static
boolean isChinese(char...
分类:
编程语言 时间:
2014-06-08 00:16:40
阅读次数:
385
var CommonCheck = { //两个时间比较
compareDate:function(end,start){ var d1Arr=end.split("-"); var
d2Arr=start.split("-"); va...
分类:
Web程序 时间:
2014-06-07 23:51:18
阅读次数:
359
获取标题,当点击时弹窗 $(document).ready(function(){ var
options = { chart: { plotBackgroundColor: null, plotBorderWidth: null,
plotShadow: fal...
分类:
其他好文 时间:
2014-06-07 23:49:15
阅读次数:
395
A basic requirement is that the function should
provide a uniform distribution of hash values. A non-uniform distribution
increases the number of coll...
分类:
其他好文 时间:
2014-06-07 16:58:29
阅读次数:
240