上一页 1 ··· 472 473 474 475 476 477 478 479 480 ··· 495 下一页
摘要: ES6 provides Map, it is a set of k-v pair. Key can be number, string, object, function and even undefined.var m = new Map();Methods:1. set(k,v)m.set("... 阅读全文
posted @ 2015-01-02 05:43 Zhentiw 阅读(238) 评论(0) 推荐(0)
摘要: Es6 provides "Set", it likes array but the data inside should be unqiue."Set" is a construct function, you should call:var s = new Set();Methods:1.add... 阅读全文
posted @ 2015-01-02 05:35 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: Define object:var color = "blue";var speed = 120;var car = {color, speed};console.log(car.color); // blueconsole.log(car.speed); // 120in ES5:var ca... 阅读全文
posted @ 2015-01-01 22:10 Zhentiw 阅读(203) 评论(0) 推荐(0)
摘要: Front-end changes:app.js: Uinsg $resource/** * Created by Answer1215 on 12/9/2014. */'use strict';function MainCtrl(People) { var vm = this; vm.... 阅读全文
posted @ 2014-12-28 04:34 Zhentiw 阅读(188) 评论(0) 推荐(0)
摘要: This lesson describes what is really happening when you use the angularfactory and how you can make your factories even more dynamic in creation.This ... 阅读全文
posted @ 2014-12-27 23:43 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: The app structure:Front-end: app.js/** * Created by Answer1215 on 12/9/2014. */'use strict';function MainCtrl(PeopleService) { var vm = this; vm... 阅读全文
posted @ 2014-12-27 05:21 Zhentiw 阅读(387) 评论(0) 推荐(0)
摘要: ThengCloakdirective is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your a... 阅读全文
posted @ 2014-12-27 02:23 Zhentiw 阅读(215) 评论(0) 推荐(0)
摘要: Learn how to manually control how asynchronous requests are handled with the use of promises. Because $http is built to work with promises, we saw a f... 阅读全文
posted @ 2014-12-26 16:34 Zhentiw 阅读(167) 评论(0) 推荐(0)
摘要: Using the $http service to make requests to remote servers.categories-model.js:angular.module('eggly.models.categories', []) .service('CategoriesMo... 阅读全文
posted @ 2014-12-26 03:11 Zhentiw 阅读(238) 评论(0) 推荐(0)
摘要: If you're in a scenario where you want to disable the auto scrolling, but you want to control the scrolling manually, you can use the anchorscroll ser... 阅读全文
posted @ 2014-12-26 00:26 Zhentiw 阅读(866) 评论(0) 推荐(0)
上一页 1 ··· 472 473 474 475 476 477 478 479 480 ··· 495 下一页