上一页 1 ··· 478 479 480 481 482 483 484 485 486 ··· 494 下一页
摘要: In ES6, IIFE is not necessary:// IIFE写法(function () { var tmp = ...; ...}());// 块级作用域写法{ let tmp = ...; ...}另外,ES6也规定,函数本身的作用域,在其所在的块级作用域之... 阅读全文
posted @ 2014-11-19 23:44 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: Fialdcase 1: let can work in it's block{ let a = 10; var b = 1;}a // ReferenceError: a is not defined.b //1Case 2: Let has no "Hosting" Problemf... 阅读全文
posted @ 2014-11-19 23:23 Zhentiw 阅读(261) 评论(0) 推荐(0)
摘要: var message = "Hi";{ var message = "Bye"; }console.log(message); //ByeThe message inside the block still has impact on the outside.Just rememb... 阅读全文
posted @ 2014-11-19 23:11 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: When you minify your code with a tool like Uglify, the resulting minified file will rename variables. This is a problem for AngualrJS, which uses para... 阅读全文
posted @ 2014-11-18 17:47 Zhentiw 阅读(1025) 评论(0) 推荐(0)
摘要: Local Install:npm install -g traceurnpm install grunt-contrib-watchnpm install grunt-traceur-latestGruntFile:module.exports = function(grunt){ grun... 阅读全文
posted @ 2014-11-17 22:55 Zhentiw 阅读(385) 评论(0) 推荐(0)
摘要: 6.2Setting Up socket.io Server-SideSo far we've created an Express server. Now we want to start building a real-time Q&A moderation service and we've ... 阅读全文
posted @ 2014-11-17 22:08 Zhentiw 阅读(952) 评论(0) 推荐(0)
摘要: Grunt will clean up your build with the grunt-contrib-clean to make sure that no artifacts from previous builds are hanging around. Install: npm insta 阅读全文
posted @ 2014-11-17 18:28 Zhentiw 阅读(249) 评论(0) 推荐(0)
摘要: For production we want to use minified javascript to reduce the payload that is sent from the server. This can easily be accomplished with grunt-uglif... 阅读全文
posted @ 2014-11-17 18:12 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: Combine serval javascript files together.For angular project, make sure you add angular.min.js first, then app.js (which contains main module) second,... 阅读全文
posted @ 2014-11-17 05:46 Zhentiw 阅读(274) 评论(0) 推荐(0)
摘要: With Grunt you can automate core tasks for your AngularJS project. In this lesson we will take a look at converting Stylus files to CSS, and add a wat... 阅读全文
posted @ 2014-11-17 05:28 Zhentiw 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 478 479 480 481 482 483 484 485 486 ··· 494 下一页