上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 68 下一页
摘要: ⒈介绍 软件工程中,我们不仅要创建一致的定义良好的API,同时也要考虑可重用性。泛型可用于提升代码的重用性,我们希望自己编写的代码,无论是模块还是组件,不仅能支持当前设计的数据类型,而且也能支持将来的数据类型,这在大型系统中是非常基础且重要的功能。所以我们常常能在各种各样的静态类型的语言中看到泛型设 阅读全文
posted @ 2019-11-10 19:39 SpringCore 阅读(441) 评论(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 阅读(5065) 评论(0) 推荐(0)
摘要: 1.全新的变量声明方式 let和const是JavaScript ES6中新添加的变量声明方式。let在很多方面与var是相似的,但是它可以避免一些在JavaScript里常见一些问题。 而const则是对let的一个增强,它将阻止对一个变量再次赋值(二次赋值)。 因为TypeScript是Java 阅读全文
posted @ 2019-11-10 07:48 SpringCore 阅读(550) 评论(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 阅读(671) 评论(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 阅读(693) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TJCFinanceWriteOff.BizLogic.Common { /// /// C#金额大写转小写 /// ... 阅读全文
posted @ 2019-10-29 09:54 SpringCore 阅读(259) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 namespace TJCFinanceWriteOff.BizLogic.Common 6 { 7 public class UnixTimeUtil 8 { 9 /// 10 ... 阅读全文
posted @ 2019-10-29 09:54 SpringCore 阅读(442) 评论(0) 推荐(0)
摘要: 1 using (Bitmap bmp = new Bitmap(scanImgPath)) 2 { 3 Bitmap bitmap = new Bitmap(bmp.Width, bmp.Height, PixelFormat.Format16bppRgb555); 4 using (Graphics draw = Graphics.FromImage(bitmap)) 5 { 6 draw.D 阅读全文
posted @ 2019-10-29 09:52 SpringCore 阅读(3043) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Data; using System.Reflection; using System.Text; namespace TJCFinanceWriteOff.BizLog... 阅读全文
posted @ 2019-10-14 14:45 SpringCore 阅读(993) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 68 下一页