上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 68 下一页
摘要: 自ECMAScript 2015(ES6)起,symbol成为了一种新的原生类型,就像基本类型number和string一样。 ⒈介绍及使用方式 TypeScript中使用symbol类型和JavaScript的使用方式如出一辙,也是通过Symbol构造函数创建的。 let sym1 = Symbo 阅读全文
posted @ 2019-11-26 15:27 SpringCore 阅读(1655) 评论(0) 推荐(0)
摘要: 我们常常会有这样的场景,比如与后端开发约定订单的状态开始是0,未结账是1,运输中是2,运输完成是3,已收货是4。这样的纯数字会使得代码缺乏可读性。枚举就用于这样的场景。枚举可以让我们定义一些名字有意义的常量。使用枚举可以清晰地表达我们的意图。TypeScript支持基于数字枚举和字符串的枚举。 ⒈数 阅读全文
posted @ 2019-11-26 09:32 SpringCore 阅读(1599) 评论(0) 推荐(0)
摘要: ⒈下载描述文件 wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml ⒉在主节点上运行 kubectl apply -f recommended.yam 阅读全文
posted @ 2019-11-23 12:17 SpringCore 阅读(2100) 评论(0) 推荐(0)
摘要: 导出表结构语句1、执行以下查询 SELECT 表名称 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, 序号 = a. 阅读全文
posted @ 2019-11-23 07:53 SpringCore 阅读(1178) 评论(0) 推荐(0)
摘要: ⒈介绍 软件工程中,我们不仅要创建一致的定义良好的API,同时也要考虑可重用性。泛型可用于提升代码的重用性,我们希望自己编写的代码,无论是模块还是组件,不仅能支持当前设计的数据类型,而且也能支持将来的数据类型,这在大型系统中是非常基础且重要的功能。所以我们常常能在各种各样的静态类型的语言中看到泛型设 阅读全文
posted @ 2019-11-10 19:39 SpringCore 阅读(440) 评论(0) 推荐(0)
摘要: ⒈解构数组 最简单的解构莫过于数组的解构赋值了: let input = [1, 2]; let [first, second] = input; console.log(first); // outputs 1 console.log(second); // outputs 2 这创建了2个命名变 阅读全文
posted @ 2019-11-10 14:19 SpringCore 阅读(5052) 评论(0) 推荐(0)
摘要: 1.全新的变量声明方式 let和const是JavaScript ES6中新添加的变量声明方式。let在很多方面与var是相似的,但是它可以避免一些在JavaScript里常见一些问题。 而const则是对let的一个增强,它将阻止对一个变量再次赋值(二次赋值)。 因为TypeScript是Java 阅读全文
posted @ 2019-11-10 07:48 SpringCore 阅读(547) 评论(0) 推荐(0)
摘要: ⒈TypeScript的类型 JavaScript语言的数据类型包括以下7种: 1.boolean(布尔),true || false 2.null,表明null值得特殊关键字,JavaScript是大小写敏感的,不要误写成Null或者NULL 3.undefined,变量未定义时的属性 4.num 阅读全文
posted @ 2019-11-09 20:35 SpringCore 阅读(667) 评论(0) 推荐(0)
摘要: ⒈TypeScript简介 1.JavaScript的超集 2.支持ECMAScript6标准,并支持输出ECMAScript3/5/6标准的纯JavaScript代码 3.支持ECMAScript未来提案中的特性,比如异步功能和装饰器 4.支持类型系统且拥有类型推断 5.支持运行在任何浏览器、No 阅读全文
posted @ 2019-11-08 21:45 SpringCore 阅读(257) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; namespace TJCFinanceWriteOff.BizLogic.Co... 阅读全文
posted @ 2019-10-29 09:56 SpringCore 阅读(687) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 68 下一页