*manpages*File: *manpages*, Node: crontab, Up: (dir)CRONTAB(1) General Commands Manual CRONTAB(1)NAME crontab - maintain crontab files for individual ...
分类:
系统相关 时间:
2014-09-04 22:10:50
阅读次数:
488
Node.js 最大的特点就是异步式 I/O(或者非阻塞 I/O)与事件紧密结合的编程模式。这种模式与传统的同步式 I/O 线性的编程思路有很大的不同,因为控制流很大程度上要靠事件和回调函数来组织,一个逻辑要拆分为若干个单元。阻塞与线程什么是阻塞(block)呢?线程在执行中如果遇到磁盘读写或网络通...
分类:
Web程序 时间:
2014-09-04 22:10:10
阅读次数:
300
CommonJS是服务器端模块的规范,Node.js采用了这个规范。CommonJS API定义很多普通应用程序(主要指非浏览器的应用)使用的API,从而填补了这个空白。它的终极目标是提供一个类似Python,Ruby和Java标 准库。这样的话,开发者可以使用CommonJS API编写应用程序,...
分类:
Web程序 时间:
2014-09-04 20:51:10
阅读次数:
260
说明:本人是node.js的初学者,尝试向别人解释这是怎么回事是自我学习的一个好方法。如果你发现有些地方并不是那么正确,欢迎提出来让我知道以便修正,共同进步,谢过^_^。 欢迎交流,本人微博:http://weibo.com/bitsea很多地方都涉及到函数的回调,在这里简单说一下什么是函数的...
分类:
Web程序 时间:
2014-09-04 20:49:30
阅读次数:
261
/** * Created by Administrator on 2014/9/4. */var util = require('util');function Base() { this.name = '李斌'; this.base = '1992'; this.sayHell...
分类:
Web程序 时间:
2014-09-04 20:41:00
阅读次数:
389
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
/**
* Definition for singly-lin...
分类:
其他好文 时间:
2014-09-04 19:12:40
阅读次数:
201
原文地址:http://my.oschina.net/yushulx/blog/309413目录[-]安装服务端客户端参考安装?1npminstallws服务端server.js?12345678varWebSocketServer=require('ws').Server,wss=newWebSo...
分类:
Web程序 时间:
2014-09-04 18:35:09
阅读次数:
230
Node.js的异步编程风格是它的一大特点,在代码中就是体现在回调中。首先是代码的顺序执行:function heavyCompute(n, callback) { var count = 0, i, j; for (i = n; i > 0; --i) { for (j = n; j > 0; -...
分类:
Web程序 时间:
2014-09-04 18:33:29
阅读次数:
239
腾讯三面的时候,叫我写了个哈希表,当时紧张没写好···结果跪了··· 回来后粪发涂墙,赶紧写了一个! 什么都不说了···先让我到厕所里面哭一会··· %>_ 2 #include 3 #include 4 #include 5 6 struct node { 7 ...
分类:
编程语言 时间:
2014-09-04 16:23:59
阅读次数:
240
var treeObj = $.fn.zTree.getZTreeObj("treeDemo");//树对象
var node = treeObj.getNodeByParam("id",${id});
node.nocheck=true;
treeObj.updateNode(node);//一定要更新树,否则没效果...
分类:
其他好文 时间:
2014-09-04 15:02:19
阅读次数:
261