$(function(){ $('li:has(ul)') .click(function(event){ if (this == event.target){ if($(this).childr...
分类:
Web程序 时间:
2014-08-11 02:37:31
阅读次数:
243
删除文件及目录: 1 //循环删除目录和文件函数 2 function delDirAndFile( $dirName ) 3 { 4 if ( $handle = opendir( "$dirName" ) ) { 5 while ( false !== ( $item = ...
分类:
Web程序 时间:
2014-08-11 00:09:00
阅读次数:
319
一)线程基础1、创建线程:thread模块提供了start_new_thread函数,用以创建线程。start_new_thread函数成功创建后还能够对其进行操作。其函数原型: start_new_thread(function,atgs[,kwargs])其參数含义例如以下: function:...
分类:
编程语言 时间:
2014-08-11 00:06:30
阅读次数:
454
1,考察thisvar length = 10function fn(){alert(this.length)}var obj = {length: 5,method: function(fn) {fn() // ?arguments[0]() // ?}}obj.method(fn)这里的坑主要是...
分类:
Web程序 时间:
2014-08-11 00:06:21
阅读次数:
314
遍历树中的节点GetChildNodeId : function(iNode){ if (iNode.isLeaf()) { gTreeLeafNodeIds.push({ 'DEPARTMENTID':'科室ID'(iNode.id), 'ACCOUNT':'账号', 'D...
分类:
其他好文 时间:
2014-08-11 00:06:11
阅读次数:
307
jquery animate函数不能处理背景色渐变,需要使用jquery.color插件gitHub地址:https://github.com/jquery/jquery-color/使用代码:$(function(){ $("#cdiv").animate( { backgroundC...
分类:
Web程序 时间:
2014-08-11 00:00:00
阅读次数:
261
下面从头到尾记录chat demo的Login的过程client:点击login按钮,取得username和rid两个值$("#login").click(function() { username = $("#loginUser").attr("value"); rid...
分类:
其他好文 时间:
2014-08-10 23:49:30
阅读次数:
939
var getJSONP = function ( url, callback ) { if( !url ) { return ; } var cbnum = 'cb' + JSONP.counter++; var cbname = 'JSONP.' + cbnum; if( url...
分类:
Web程序 时间:
2014-08-10 21:20:30
阅读次数:
445
$(function () { $.ajax({ url: 'Ashx/GetProductList.ashx', contentType: "JSON", success: functi...
分类:
移动开发 时间:
2014-08-10 21:16:20
阅读次数:
216
aaaaaaaaaaaaaaaaaaa
sasdsasdasdadasd
saswerwerwedgddadasd
sasdwewrwreadasd
var EventUtil = {
addHandler: function(element, type, handler) {
...
分类:
Web程序 时间:
2014-08-10 18:43:30
阅读次数:
250