上一页 1 ··· 434 435 436 437 438 439 440 441 442 ··· 466 下一页
摘要: Rest Parameters:In ES5, when you don't know how many paramters will be passed in, you can use arguments:let sum = function(){ let result = 0; fo... 阅读全文
posted @ 2015-05-01 18:40 Zhentiw 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Aadd watch to the config.json file:{ "apps": [{ "name": "App1", "script": "app1/server.js", "log_file": "log/app1.log", "error_file": "lo... 阅读全文
posted @ 2015-04-29 17:12 Zhentiw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Add config for app's log and error log for PM2.{ "apps": [{ "name": "App1", "script": "app1/server.js", "log_file": "log/app1.log", "erro... 阅读全文
posted @ 2015-04-29 17:11 Zhentiw 阅读(154) 评论(0) 推荐(0) 编辑
摘要: In this lesson, you will learn how to configure node apps using pm2 and a json config file.Let's say there are tow node apps: app1, app2.What we want ... 阅读全文
posted @ 2015-04-29 16:05 Zhentiw 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 'const' keyword is for creating a read only variable, something you can never change once created.'const' likes 'let' keyword alos has block scope.des... 阅读全文
posted @ 2015-04-29 04:14 Zhentiw 阅读(272) 评论(0) 推荐(0) 编辑
摘要: ES-Next:Esnext is similar to traceur, you can use command line to compile files.Install:npm install esnext -g Here's how to compile a single file an p... 阅读全文
posted @ 2015-04-29 03:47 Zhentiw 阅读(400) 评论(0) 推荐(0) 编辑
摘要: Polyfill is something you don't need to set up traceur but start to use es6 in today's browser.You can search for polyfill which you want to use on Go... 阅读全文
posted @ 2015-04-29 03:24 Zhentiw 阅读(285) 评论(0) 推荐(0) 编辑
摘要: direictives/index.js:module.exports = function(ngModule) { //register all the directives here require('./hello')(ngModule);};directives/hello.js... 阅读全文
posted @ 2015-04-13 03:20 Zhentiw 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ... 阅读全文
posted @ 2015-04-13 02:49 Zhentiw 阅读(1786) 评论(0) 推荐(0) 编辑
摘要: It is best to start your application's localization effortsearlyin development, even if you only support one language initially. Libraries like angula... 阅读全文
posted @ 2015-03-28 23:40 Zhentiw 阅读(292) 评论(0) 推荐(0) 编辑
上一页 1 ··· 434 435 436 437 438 439 440 441 442 ··· 466 下一页