概念:模块(Module)和包(Package)是Node.js最重要的支柱。
开发一个具有一定规模的程序不可能只用一个文件,通常需要把各个功能拆分、分装、然后组合起来。模块正式为了实现这种方式而诞生,在浏览器JavaScript中,脚本模块的拆分和组合通常使用HTML的script标签来实现,.....
分类:
Web程序 时间:
2014-05-26 20:33:20
阅读次数:
356
一 、查看已安装的nginx是否包含stub_status模块
/usr/local/nginx/sbin/nginx -V nginx version: Nginx/1.2.0 configure arguments:
--with-http_stub_status_module 确定支持stub...
分类:
其他好文 时间:
2014-05-26 16:34:01
阅读次数:
233
目的是做一个grid,参考博客http://www.sunzhenghua.com/magento-admin-module-development-part1-grid-forms-tabs-controllers,由于少了很多基础的配置,我便补充了一下一。开发的目录结构如下:Jago->Empl...
分类:
其他好文 时间:
2014-05-26 16:17:01
阅读次数:
312
模块的搜索路径:When a module namedspamis imported, the
interpreter searches for a file namedspam.pyin the current directory, and then
in the list of director...
分类:
编程语言 时间:
2014-05-26 15:09:11
阅读次数:
367
微软PowerShell 产品组上周发布了PowerShell 5.0
PowerShellGet功能。有了它,IT 人员可以方便地搜索,安装,更新PowerShell
Module。在这篇博客中,我将演示如果使用PowerShellGet安装微软ScriptBrowser和ScriptAnalyz...
分类:
其他好文 时间:
2014-05-26 12:10:24
阅读次数:
232
1、修改配置文件Apache\conf\httpd.conf找到LoadModule
vhost_alias_module modules/mod_vhost_alias.so 去掉前面的#找到Include
conf/extra/httpd-vhosts.conf ...
分类:
其他好文 时间:
2014-05-26 11:51:47
阅读次数:
247
变量定义(variables):local: time or _time instance:
@time class: @@time global $time数据类型(data types)Numeric String Symbol Boolean
Array Hashvariabl...
分类:
其他好文 时间:
2014-05-26 09:39:54
阅读次数:
217
yum install gcc pcre-devel zlib-devel
openssl-develwget http://nginx.org/download/nginx-1.6.0.tar.gz./configure
--with-http_stub_status_module --with-...
分类:
其他好文 时间:
2014-05-26 07:58:20
阅读次数:
253
在开发一个复杂的应用程序的时候,我们需要把各个功能拆分、封装到不同的文件,在需要的时候引用该文件。没人会写一个几万行代码的文件,这样在可读性、复用性和维护性上都很差,几乎所有的编程语言都有自己的模块组织方式,比如Java中的包、C#中的程序集等,node.js使用模块和包来组织,其机制实现参照了CommonJS标准,虽未完全遵守,但差距不大,使用起来非常简单。
在node.js中模块与文件是...
分类:
Web程序 时间:
2014-05-26 03:45:20
阅读次数:
366
Quick Referenceinsmodmodprobermmod User-space
utilities that load modules into the running kernels and remove them.#include
module_init(init_function)...
分类:
其他好文 时间:
2014-05-24 12:05:39
阅读次数:
286