Javascript不是一种模块化编程语言,它不支持"类"(class),更遑论"模块"(module)了。(正在制定中的ECMAScript标准第六版,将正式支持"类"和"模块",但还需要很长时间才能投入实用。)一、原始写法只要把不同的函数(以及记录状态的变量)简单地放在一起,就算是一个模块。 ....
分类:
编程语言 时间:
2014-07-22 22:43:55
阅读次数:
356
1.项目架构是这样的: 2.所以第一步看主工程的AndroidManifest.xml文件,看里面的packagename 等信息。 3.adt新建一个android项目,packagename和appname跟旧的项目一致。 4.最关键的一步。那些原有的lib module怎...
分类:
移动开发 时间:
2014-07-22 09:00:05
阅读次数:
205
在用webpy的db.insert()向postgres插入数据时出现 Traceback?(most?recent?call?last):
??File?"upgrade2.0.py",?line?170,?in?<module>
????copy_webservice()
??File?"upgrade2.0.py",?lin...
分类:
Web程序 时间:
2014-07-22 08:10:35
阅读次数:
569
功能:创建连接池,决定使用哪些事件驱动机制,以及初始化将要使用的事件模块该模块定义了ngx_event_core_commands数组处理其感兴趣的7个配置项ngx_event_conf_t为该模块定义的用于存储配置项参数的结构体在Nginx启动过程中还没有fork出worker子进程时,会首先调用...
分类:
其他好文 时间:
2014-07-22 00:34:34
阅读次数:
197
myeclipse6.0 下载地址。官方下载地址: http://www.myeclipseide.com/module-htmlpages-display-pid-4.html本地快速下载地址: http://www.rosebush.cn/blog/html/23/t-7423.html htt...
分类:
系统相关 时间:
2014-07-22 00:08:36
阅读次数:
349
以前添加依赖总是到github上下载源码,再添加源码到module的依赖当中,其实在studio中,应该使用maven库。比如在github上看到了sliding-menu这个项目,就应该到maven网站上找对应的库,之后把地址写入build.gradle中,比如以下就是sliding-menu的库...
分类:
移动开发 时间:
2014-07-21 23:30:02
阅读次数:
273
在http.conf确认已载入相关模块 LoadModule vhost_alias_module modules/mod_vhost_alias.so 在httpd-vhosts.conf或者在/home/http/conf/httpd.conf?添加以下配置。 <VirtualHost *:80> ? ? DocumentRoot "f:...
分类:
其他好文 时间:
2014-07-21 23:29:40
阅读次数:
389
#!/bin/sh#POST-COMMITHOOK##Thepost-commithookisinvokedafteracommit.Subversionruns#thishookbyinvokingaprogram(script,executable,binary,etc.)#named‘post-commit‘(forwhichthisfileisatemplate)withthe#followingorderedarguments:##[1]REPOS-PATH(thepathtothisreposit..
分类:
其他好文 时间:
2014-07-21 15:25:17
阅读次数:
284
QS NetworkDescriptionIn the planet w-503 of galaxy cgb, there is a kind of intelligent creature named QS. QScommunicate with each other via networks. ...
分类:
Web程序 时间:
2014-07-21 09:31:40
阅读次数:
759
现在很多人估计和我一样项目中已经开始应用起nodeJS,而伴随着项目的需求,对nodejs版本也有着各种需求,好了直接进入主题,现在node版本管理网上有很多方式,这里说两种:
第一种module n:
sudo npm install n -g
//安装node管理模块n
sudo n 0.11.12
//安装node0.11.12版本
n
//安装完成之后,直接输入n后输出当...
分类:
其他好文 时间:
2014-07-20 22:11:43
阅读次数:
322