上一页 1 ··· 449 450 451 452 453 454 455 456 457 ··· 499 下一页
摘要: function spinner(target, options = {}){ let defaults = { message: "Please wait", spinningSpeed: 5, cssClass: ".is-spinning" }; let setting... 阅读全文
posted @ 2016-01-03 17:09 Zhentiw 阅读(482) 评论(0) 推荐(0)
摘要: Creating Object:Example 1:let name = "Brook";let totalReplies = 249;let avatar = "/users/avatars/brook-user-1.jpg";let user = {name, totalReplies, ava... 阅读全文
posted @ 2016-01-03 16:53 Zhentiw 阅读(273) 评论(0) 推荐(0)
摘要: The spread operator allow us to split an Array arguement into individual elements.getRequest("/topics/17/tags", function(data){ let tags = data.tag... 阅读全文
posted @ 2016-01-03 16:32 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要: Problem with the ES5:function displayTags(){ for (let i in arguments) { let tag = arguments[i]; _addToTopic(tag); }}Hard to tell w... 阅读全文
posted @ 2016-01-02 21:47 Zhentiw 阅读(279) 评论(0) 推荐(0)
摘要: 1. Default Value of function param:The functiondisplayTopicsPreview()raises an error on the very first line when called with no arguments. Let's fix t... 阅读全文
posted @ 2016-01-02 04:59 Zhentiw 阅读(623) 评论(0) 推荐(0)
摘要: we leverage private components to break our render function into more manageable pieces without leaking the implementation details of our component. ... 阅读全文
posted @ 2015-12-31 04:05 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: indexOf is used to search for a value or reference inside of an array. In this lesson we first look at what values are returned when a search is succe... 阅读全文
posted @ 2015-12-30 22:23 Zhentiw 阅读(212) 评论(0) 推荐(0)
摘要: When using recursion, you must be mindful of the dreadedinfinite loop. Using the recursive function that we’ve built up over the previous lessons, we ... 阅读全文
posted @ 2015-12-30 02:53 Zhentiw 阅读(300) 评论(0) 推荐(0)
摘要: var falcorExpress = require( 'falcor-express' );var falcor = require('falcor');var express = require( 'express' );var app = express();var ... 阅读全文
posted @ 2015-12-29 15:22 Zhentiw 阅读(213) 评论(0) 推荐(0)
摘要: // Save datavar storage = require('node-persist');storage.init();var people= require('./people.json');people.forEach( (person)=>{ storage.setItem(per... 阅读全文
posted @ 2015-12-26 18:10 Zhentiw 阅读(437) 评论(0) 推荐(0)
上一页 1 ··· 449 450 451 452 453 454 455 456 457 ··· 499 下一页