码迷,mamicode.com
首页 >  
搜索关键字:exports    ( 1360个结果
grunt 合并压缩任务
module.exports = function(grunt) { // LiveReload的默认端口号,你也可以改成你想要的端口号 var lrPort = 35729; // 使用connect-livereload模块,生成一个与LiveReload脚本 // ...
分类:其他好文   时间:2015-01-25 23:51:56    阅读次数:240
Grunt:多个css,js,进行单独压缩
module.exports = function (grunt) { // 构建任务配置 grunt.initConfig({ //读取package.json的内容,形成个json数据 pkg: grunt.file.readJSON('package.j...
分类:Web程序   时间:2015-01-25 22:27:09    阅读次数:209
CommonJs的模块规范
CommonJs对模块的定义主要分为模块引用、模块定义、模块标识3个部分。1.模块引用模块引用的示例代码如下:var math = require("match");2.模块定义在模块化中,上下文提供require()方法来引入外部模块。对应引入的功能,上下文提供了exports对象用于导出当前模块...
分类:Web程序   时间:2015-01-22 19:50:40    阅读次数:385
Visual Studio 2010/2013 查看DLL接口(函数)
1. “应用程序" Visual Studio 2010/2013 的Visual Studio Tools文件夹中打开Visual Studio Command Prompt命令提示窗口2. dumpbin /exports c:\...\**.dll (文件完整路径)
分类:其他好文   时间:2015-01-21 10:08:03    阅读次数:516
ubuntu nfs server config
(1)#sudo apt-get install nfs-kernel-server打开/etc/exports文件,在末尾加入:/home/hyq *(rw,sync,no_root_squash)注:nfs允许挂载的目录及权限,在文件/etc/exports中进行定义,各字段含义如下:/home...
分类:系统相关   时间:2015-01-12 19:04:00    阅读次数:203
Nodejs使用coffeescript编写的用户注册/登陆代码(MySQL)
记录一下,以备后用Settings = require '../../settings.js'exports.register = (req, res) -> nick_name = req.body.nick_name email = req.body.email password = re...
分类:数据库   时间:2015-01-12 19:00:35    阅读次数:215
自动编译CoffeeScript的Gruntfile.js
比如把coffee文件写在coffee/controller/文件夹下,新建js/controller文件夹,使用grunt运行项目,将自动编译coffee到相应的js文件夹下。module.exports = function(grunt) { // 项目配置信息. grunt.initCon.....
分类:Web程序   时间:2015-01-12 19:00:00    阅读次数:183
Node.js 的module 系统
相较于原生的JavaScript,不同的JavaScript文件之间很难共享变量。有鉴于此,Node.js在JavaScript的基础上进行了扩充,引入了require,exports,module三个global object。一、absolute module 和 relative modu.....
分类:Web程序   时间:2015-01-08 21:34:25    阅读次数:224
once函数,简约不简单的
module.exports = onceonce.proto = once(function () { Object.defineProperty(Function.prototype, 'once', { value: function () { return once(thi...
分类:其他好文   时间:2015-01-05 14:29:18    阅读次数:185
nodeJs学习笔记 module.exports 和 exports
exports是将函数能被引用该方法的模块引用到, 它有两种写法 exports.functionName =?function()?? 和?? module.exports = function() 例子: sourse/sourseList.js var?express?=?require(‘express‘); v...
分类:Web程序   时间:2015-01-04 19:49:02    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!