上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 在 vue.config.js里面配置 devServer: { proxy: { '/': { // search为转发路径 target: 'http://www.baidu.com', // 目标地址 ws: true, // 是否代理websockets ... 阅读全文
posted @ 2019-10-07 21:12 liliyou 阅读(1447) 评论(0) 推荐(0) 编辑
摘要: devServer: { proxy: { '/': { // search为转发路径 target: 'http://www.baidu.com', // 目标地址 ws: true, // 是否代理websockets changeOrigi... 阅读全文
posted @ 2019-10-07 21:11 liliyou 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 原因 数据库中 code 字段 类型为 varchar 而实体的类型为 int 导致string 类型无法转化为int 类型而报错 参考:https://www.cnblogs.com/Godric/p/10111594.html 阅读全文
posted @ 2019-09-28 16:27 liliyou 阅读(787) 评论(0) 推荐(0) 编辑
摘要: ng-container本身不创建任何html代码,相当于一个容器。 使用 ngTemplateOutlet 指令创建动态模板 阅读全文
posted @ 2019-09-25 09:15 liliyou 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.AspNetCore.Mvc.Filters; using System; using System.Threading.Tasks; namespace dotnet_core.Filter { public class MyFilterAttribute: ActionFilterAttribute { public over... 阅读全文
posted @ 2019-09-22 17:07 liliyou 阅读(495) 评论(0) 推荐(0) 编辑
摘要: C#对类的解构,必须在该类内实现Deconstruct方法,并且返回类型为void ,并用out参数返回各个部分。 阅读全文
posted @ 2019-09-13 14:57 liliyou 阅读(262) 评论(0) 推荐(0) 编辑
摘要: private _PLACEHOLDER: string; @Input() public set placeholder(v: string) { this._PLACEHOLDER = v; } public get placeholder(): string { if (this._PLACEHOLDER) { return this._PLACEHOLDER; } else { retur 阅读全文
posted @ 2019-09-11 16:16 liliyou 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 单例模式:确保一个类只有一个实例,并提供一个全局 访问点来访问这个唯一实例 单例模式要点 1.构造函数为private 2.提供一个类型为自身的私有静态成员变量 3.提供一个公有的静态工厂方法 阅读全文
posted @ 2019-09-08 09:30 liliyou 阅读(96) 评论(0) 推荐(0) 编辑
摘要: using System; namespace ConsoleApp { class Program { static void Main(string[] args) { string str = "askljd sadsa dsakld sa?dsad"; Console.WriteLine(str.GetWordCount()); Console.ReadKey(); } } /// <su 阅读全文
posted @ 2019-09-07 22:44 liliyou 阅读(174) 评论(0) 推荐(0) 编辑
摘要: // 学习接口隔离原则 using System; namespace console { class Program { static void Main(string[] args) { Person p = new Person(new Car()); Person p1 = new Pers... 阅读全文
posted @ 2019-08-28 22:39 liliyou 阅读(80) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页