1.什么是REPL运行环境:为了使开发者方便测试javascript代码,提供了一个名为REPL(Read-Eval-Print-Loop)的可交互式运行环境。 2.怎么使用:在命令行窗口中,输入“node”命令并按下回车键,即可进入REPL运行环境。 3.声明对象并给属性赋值: > user=ne ...
分类:
Web程序 时间:
2017-09-03 17:54:00
阅读次数:
156
webpack 打包时会用 NODE_ENV 来标识是生产环境还是开发环境光, "build": "NODE_ENV=production webpack", windows 环境下使用 gitbash 或cmd ,会报错 'NODE_ENV' 不是内部或外部命令,也不是可运行的程序 这种操作在po ...
分类:
其他好文 时间:
2017-09-03 14:14:25
阅读次数:
132
Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. ...
分类:
其他好文 时间:
2017-09-03 13:15:06
阅读次数:
127
下载node出现以下异常 : the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is ...
概述 npm是同node一起安装的包管理工具。主要用于管理node包,安装、卸载、更新、查看、搜索、发布等。 由于npm使用国外的服务器进行下载所以速度较慢,可以使用淘宝镜像cnpm替代。 详细可以查看https://npm.taobao.org/ 常用命令(cnpm基本也支持,除了publish ...
分类:
其他好文 时间:
2017-09-03 12:24:56
阅读次数:
230
重新启动redis集群时启动失败 n context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: redis.clients.jedi ...
分类:
其他好文 时间:
2017-09-03 12:19:24
阅读次数:
146
反思 :等于号啊等于号,判断要==(=.=); ...
分类:
其他好文 时间:
2017-09-03 11:18:56
阅读次数:
388
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2017-09-03 10:08:39
阅读次数:
133
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */... ...
分类:
其他好文 时间:
2017-09-03 10:04:08
阅读次数:
95
Hello Fuck如下: 事件: Node.js所有的异步i/o操作在完成时都会发送一个事件到事件队列,事件由EventEmitter对象来提供,前面提到的fs.readFile和http.createServer的回调函数都是通过EventEmitter来实现的。 nodejs不停监测是否有活动 ...
分类:
Web程序 时间:
2017-09-03 10:03:43
阅读次数:
221