摘要:
# 入门 引入 HttpClientModule 模块 ```typescript //app.module.ts import { HttpClientModule } from '@angular/common/http'; @NgModule({ imports: [ HttpClientMo 阅读全文
摘要:
# # 第 2 章 第一个 Angular 程序 ## 添加第三方库(全局范围) ``` npm install bootstrap ```  Official Website https://xunit.net/ Tutorials (Chines 阅读全文
摘要:
属性 NUnit 3.x MSTest 15.x xUnit.net 2.x 评论 [Test] [TestMethod] [Fact] 标记测试方法。 [TestFixture] [TestClass] 不适用 xUnit.net 不需要测试类的属性;它在程序集中的所有公共(导出)类中查找所有测试 阅读全文
摘要:
测试常用方法 // 准备 Mock IFoo 接口 var mock = new Mock<IFoo>(); // 配置准备模拟的方法,当调用接口中的 DoSomething 方法,并传递参数 "bing" 的时候,返回 true mock.Setup(foo => foo.DoSomething( 阅读全文
摘要:
# grid-template-column 和 grid-template-rows  这2个属性都支持 [],它们代 阅读全文
摘要:
通过在 App / widgets / {your-widget-name} 添加 viewmodel.js 和 view.html 文件来创建小部件 为了利用Durandal的默认小部件支持,我们需要安装插件并以特定的方式组织小部件代码。首先,让我们安装插件。下面是 main.js 的样子 def 阅读全文
摘要:
正在搜索: durandalJS dialog的数据回传 正在搜索: durandalJS dialog的数据回传 正在搜索: durandalJS dialog data return 正在搜索: durandalJS dialog data return 正在为你生成答案… 正在为你生成答案… 阅读全文
摘要:
1 数组对比 一、 toString() (推荐) 当两个数组元素类型相同,顺序相同时,直接判断是否相等,结果不相等;转化为字符串后,结果相等 [1,2,3].toString() [1, 2, 3].toString(); // true [1,2,3].toString() ['1', 2, 3 阅读全文