码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
深入浅出NodeJS——内存控制
V8虚拟机的内存回收机制,和Java虚拟机类似采用分代回收机制,分为新生代和老生代,当满足一定条件新生代对象会晋级到老生代。利用Node在服务端编程要小心内存泄露问题,一个小的泄露由于大量并发访问可能会导致应用程序的崩溃。...
分类:Web程序   时间:2014-07-27 23:56:19    阅读次数:411
node模块机制
一、node模块化机制1、commonJS模块规范包括三部分:模块引用、模块定义、模块标识。例如://math.jsexports.add = function(){ var sum = 0; var args = arguments; var len = args.length; for(...
分类:其他好文   时间:2014-07-27 23:14:49    阅读次数:322
有关javascript中的JSON.parse和JSON.stringify的使用一二
有没有想过,当我们的大后台只是扮演一个数据库的角色,json在前后台的数据交换中扮演极其重要的角色时,作为依托node的前端开发,其实相当多的时间都是在处理数据,准确地说就是在处理逻辑和数据(这周实习最大的收获)。 而对于依托json格式传输的数据,处理数据时,用到JSON.strinify和...
分类:编程语言   时间:2014-07-27 22:41:39    阅读次数:275
ubuntu下安装nodejs
sudo apt-get install python-software-properties python g++ makesudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updatesudo apt-get install no...
分类:Web程序   时间:2014-07-27 22:07:19    阅读次数:219
uva 122 - Trees on the level(一棵看着书都写不利索的树……)
#include #include #include #include #include #include using namespace std; const int maxn = 1000; char s[maxn]; bool failed; vector ans; struct node { bool have_value; int v; node *left,*...
分类:其他好文   时间:2014-07-27 11:54:43    阅读次数:198
spoj cot: Count on a tree 主席树
10628. Count on a treeProblem code: COTYou are given a tree with N nodes.The tree nodes are numbered from 1 to N.Each node has an integer weight.We wi...
分类:其他好文   时间:2014-07-27 10:31:42    阅读次数:304
phonegap3.5了结
搞了三天的phonegap3.5。最后怎么搞都搞不好了。修改了www中的index.html的内容,clean也不行,在node.js中cordova build也不行。反正就是apk没有更新啦。至于为什么没找出原因,搞不懂。不想搞了。2.9用么好了。java sdkeclipseanroid SD...
分类:其他好文   时间:2014-07-27 10:20:32    阅读次数:221
去除express.js 3.5中报connect.multipart() will be removed in connect 3.0的警告
1 $ node app.js2 connect.multipart() will be removed in connect 3.03 visithttps://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives4 con...
分类:Web程序   时间:2014-07-27 10:16:22    阅读次数:246
双向链表的实现
上一篇博文介绍了如何使用C语言实现单链表,这篇博文介绍下双向链表的实现。单链表中每个结点只有一个后驱,而双向链表中每个结点都有一个后驱和前驱(除了第一个结点只有一个后驱,最后一个结点只有一个前驱)。双向链表中每个结点具有一个数据域和两个指向前一个结点和后一个结点的指针域。代码的实现: 首先得创建一个结点的结构体:Double_Node typedef struct Double_Node { ...
分类:其他好文   时间:2014-07-26 17:18:22    阅读次数:317
LeetCode "Populating Next Right Pointers in Each Node II"
Compared with I version, the tree could be incomplete. The only difference is that, we connect current node's child to next non-childrenless' node's f...
分类:其他好文   时间:2014-07-26 17:02:11    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!