nodejs 的模块的操作都是异步的:fs对文件的操作,。。。1.引入http模块,require , createServer ,listen ....code: // > node http.jsvar http = require('http');//引入http模块var server =....
分类:
Web程序 时间:
2014-08-18 12:07:04
阅读次数:
243
这周的学习主要是nodejs与mongoDB的交互上
分类:
Web程序 时间:
2014-08-18 10:32:43
阅读次数:
236
一、类结构org.jsoup.nodesClass Documentjava.lang.Object org.jsoup.nodes.Node org.jsoup.nodes.Element org.jsoup.nodes.DocumentAll Implemented Interfaces:Clo...
分类:
其他好文 时间:
2014-08-18 10:32:23
阅读次数:
224
[Definitions]
Here is the recursive definition of a binary tree:
A binary tree is either the empty set or a triple T = (x,L,R), where x is a node and L and R are disjoint binary trees, neither of wh...
分类:
其他好文 时间:
2014-08-18 01:34:43
阅读次数:
216
Composer是PHP的一个包依赖管理工具,类似Ruby中的RubyGems或者Node中的NPM,它并非官方,但现在已经非常流行。在此并不介绍如何使用Composer,来看看有关它autoload的内容吧。
举个栗子,假设我们的项目想要使用monolog这个日志工具,就需要在composer.json里告诉composer我们需要它:
{
"require": {
"monolog/...
分类:
其他好文 时间:
2014-08-18 00:21:33
阅读次数:
379
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2014-08-17 21:11:02
阅读次数:
213
1、首先在官网http://www.nodejs.org/下载NODE.JS2、打开命令行CMD,进入NODEJS\node_modules\的目录,输入npm install socket.io 安装socket.io模块.别急着关掉此CMD窗口,后面有用3、搭建服务端代码server.js 1 ...
分类:
Web程序 时间:
2014-08-17 21:07:02
阅读次数:
376