- 博客(5)
- 收藏
- 关注
原创 概述 - Node.js API 文档
来源:http://nodejs.cn/api/synopsis/ 概述# 一个简单的例子,用 Node 实现的 Web 服务器,用于响应输出 'Hello World': var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {'Con
2013-09-27 11:26:41 420
原创 关于本文档 - Node.js API 文档
来源:http://nodejs.cn/api/documentation/ 关于本文档# 本文档的目标是,从参考和概念的角度全面地讲解 Node.js 的 API,每个章节描述了一个内置模块或高级概念。 属性的类型、方法的参数、以及事件处理的参数,都会被详细地列在标题下的列表中。 每一个.html文档都有一份对应的.json文档,且内容相同。 这个特性
2013-09-26 11:44:02 330
原创 grunt.config.get()_gruntjs api
来源: http://gruntjs.cn/api/config.get/ 获取配置数据。 grunt.config.get([prop]) 例子: 当没有传入prop时,获取全部配置数据。 //grunt.config.init({ name: 'gruntjs.cn', project: 'gruntjs.cn' }); grunt.config.get(); //{ name
2013-08-03 16:44:36 379
原创 grunt.config()_gruntjs api
来源: http://gruntjs.cn/api/config/ 获取或设置配置数据。 grunt.config([prop [, value]]) 例子: 当没有传入参数时,获取全部配置数据。 //grunt.config.init({ name: 'gruntjs.cn', project: 'gruntjs.cn' }); grunt.config(); //{ name
2013-08-02 11:30:57 341
原创 grunt.config.init()_gruntjs api
来源: http://gruntjs.cn/api/config.init/ 初始化配置数据。 grunt.config.init(configObject) 方法缩写: .initConfig()。 例子: configObject可通过 .config() 方法访问。 grunt.config.init({ name: 'gruntjs.cn' }); //调用 gru
2013-08-01 17:39:16 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人