上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 491 下一页
摘要: The Promise.allSettled() method accepts an array (or any other iterable) of promises as a parameter. It returns a Promise object that is fulfilled wit 阅读全文
posted @ 2020-02-20 18:27 Zhentiw 阅读(456) 评论(0) 推荐(0)
摘要: In this post, we are going to see how to use 'fakeAsync' to test async code in Angular Context. fakeAsync using Zoom.js underhook, it detects all the 阅读全文
posted @ 2020-02-20 17:59 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要: In Javascript, there are two types of event loops for async tasks. First one, is well known one, for example, setTimeout, http request, click event wi 阅读全文
posted @ 2020-02-20 17:04 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要: In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a domin 阅读全文
posted @ 2020-02-20 05:15 Zhentiw 阅读(211) 评论(0) 推荐(0)
摘要: l逻辑三大定律之三: 排中律: 两个自相矛盾的观点,一定又一个是对的,没有“都不对”这种中间状态。在这种情况下,一个人可以不表态,但是如果表态,就不能说“两个我都不同意” 比如: 我认为降价不对,这会造成品牌价值受损。但是不降价也不对,毕竟眼前的销售压力很大。。。 什么是自相矛盾的观点? 就是“降价 阅读全文
posted @ 2020-02-19 23:48 Zhentiw 阅读(1971) 评论(0) 推荐(0)
摘要: 逻辑三大定律之二,矛盾律 两个相互否定的思想,不可能都对 比如 今年过节不收礼,收礼只收XXX。 就是通过制造矛盾,抓住大家的注意力。 理解什么是“否定” 比如 成功的否定,是什么? 是失败马?不是 是“未成功”。 未成功的结果不一定就是失败,还可能是成功。未成功的外延大于失败。 培养识别三种“自相 阅读全文
posted @ 2020-02-19 23:06 Zhentiw 阅读(1420) 评论(0) 推荐(0)
摘要: For example, we have the source code: getVersison('3.4.5') function getVersion(versionString) { const versionRegex = /(\d)\.(\d)\.(\d+)/ const [, majo 阅读全文
posted @ 2020-02-19 20:27 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要: The smart component we want to test: import {Component, OnInit} from '@angular/core'; import {Course} from "../model/course"; import {Observable} from 阅读全文
posted @ 2020-02-19 17:17 Zhentiw 阅读(972) 评论(0) 推荐(0)
摘要: Primitive Values Undefined (undefined), used for unintentionally missing values. Null (null), used for intentionally missing values. Booleans (true an 阅读全文
posted @ 2020-02-18 17:24 Zhentiw 阅读(227) 评论(0) 推荐(0)
摘要: Training an algorithm involes four ingredients: Data Model Objective function: We put data input a Model and get output out of it. The value we call i 阅读全文
posted @ 2020-02-18 02:55 Zhentiw 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 491 下一页