上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: public class LibWrapDateTime { [DllImportAttribute("Kernel32.dll")] public static extern void GetLocalTime(SystemTime st); [DllImportAttribute("Kernel 阅读全文
posted @ 2020-11-26 09:13 少年。 阅读(959) 评论(0) 推荐(0) 编辑
摘要: ### 扩展声明 扩展方法它可以让我们在不修改原始类的情况下,为其添加新的方法。 并不是任何方法都能作为扩展方法使用 , 必须具有以下特征: 它必须在一个非嵌套的、非泛型的静态类中(所以必须是一个静态方法) 至少要有一个参数; - 第一个参数必须是要扩展的类型,使用this关键字进行标记 - 第一个 阅读全文
posted @ 2020-10-27 16:32 少年。 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 学习参考 [C# lambda表达式(简单易懂)]: [C# Lambda表达式学习笔记] lambda简介 lambda运算符:所有的lambda表达式都是用新的lambda运算符 " => ",可以叫他,“转到”或者 “成为”。运算符将表达式分为两部分,左边指定输入参数,右边是lambda的主体 阅读全文
posted @ 2020-10-27 11:37 少年。 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 在引入vue-router的js文件里加上如下代码: //push const VueRouterPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(to) { return VueRouterPush. 阅读全文
posted @ 2020-10-16 15:51 少年。 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 文件路径 在node_modules>@vue>cli-service>optons.js 打开文件 devServer: { open: process.platform 'darwin', host: '0.0.0.0', port: 80, https: false, hotOnly: fal 阅读全文
posted @ 2020-10-16 15:43 少年。 阅读(2284) 评论(0) 推荐(0) 编辑
摘要: 数据展示 <template> <div class="sn-text "> <div class="sn-text1" v-for="(info, index) in dataShow" :class="{ 'alt': index%2==1 }" :key="info.articleId"> < 阅读全文
posted @ 2020-08-25 10:43 少年。 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 跨域问题的出现,简而言之就是基于浏览器同源策略而反馈出来的一种安全机制,是前端开发调用中出现的一种十分常见的问题,且解决方法有多种,比如采用Nginx做代理服务器,或者在前端使用自己的代理服务器,或者是直接在后端设置允许跨域,这里采用的是最后一种解决手段。 Startup Startup类里先定义一 阅读全文
posted @ 2020-05-13 13:50 少年。 阅读(821) 评论(0) 推荐(0) 编辑
摘要: # netCore封装efcore仓储模式 参考:[三层框架项目搭建教程](https://www.cnblogs.com/han1982/p/11058788.html) ### 安装依赖包 ```ruby Install-Package MySql.Data.EntityFrameworkCor 阅读全文
posted @ 2020-05-08 15:45 少年。 阅读(2223) 评论(1) 推荐(2) 编辑
摘要: # WebAPI约定 约定在控制器生成前运行,可以修改默认的约定,如可以向控制器统一添加路由前缀 ## 默认约定 集将应用于 ContactsConventionController 中的所有操作: ```c# [ApiController] [ApiConventionType(typeof(De 阅读全文
posted @ 2020-04-29 13:48 少年。 阅读(490) 评论(0) 推荐(0) 编辑
摘要: # C#FileStream类的使用 文件读写流使用 FileStream 类来表示,FileStream 类主要用于文件的读写,不仅能读写普通的文本文件,还可以读取图像文件、声音文件等不同格式的文件。区别于File类的是它对文件可进行分步读写,减小内存压力,缺点是我们需要手动的关闭和释放资源, # 阅读全文
posted @ 2020-04-25 08:40 少年。 阅读(946) 评论(0) 推荐(1) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页