摘要: 这是要爬的地址 https://www.iqiyi.com/manhua/detail_18yzlq8jc5.html,F12 查看网络发现他是通过 https://www.iqiyi.com/manhua/catalog/18yzlq8jc5/ 这个接口获取目录信息的。 这是第一话的地址 http 阅读全文
posted @ 2020-04-23 13:32 旗木卡卡罗特 阅读(886) 评论(1) 推荐(0) 编辑
摘要: 首先准备一个要操作的类,有以下几个方法 public class Test { public void Show() { Console.WriteLine("hello"); } public void Show(string name) { Console.WriteLine($"hello { 阅读全文
posted @ 2020-04-18 22:44 旗木卡卡罗特 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: 首先下面的sql --开启Sql Server 通讯配置-- sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ole Automation Procedures', 1; GO RECONFIGURE 阅读全文
posted @ 2020-04-17 14:14 旗木卡卡罗特 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 在VS 2019中开发MVC项目时发现了一个问题,就是没有添加区域的选项了,在网上查了一次,有两种方法可以解决。 方法一:在MVC项目上右键-添加-选择“亲搭建的基架项目”-选择MVC 右边就显示出来了。 方法二:在MVC项目中新建一个Areas文件夹,在这个文件夹上右键-添加-选择区域就行了 阅读全文
posted @ 2020-04-15 16:21 旗木卡卡罗特 阅读(2329) 评论(1) 推荐(0) 编辑
摘要: 今天遇到一个奇葩的错误,代码报红波浪线错误,但编译正常,程序能正常运行; 解决方法 在项目引用中把报错的代码所在项目先移除,再重新引用,然后编译一下就好了 阅读全文
posted @ 2019-12-13 09:40 旗木卡卡罗特 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 前言 在使用 EF 开中我们经常使用 xx.Where(p=>p.Name="张三") 查询数据,之所以能这样是因为 EF 框架会把这些C#代码转成Sql语句, 其中主要用到的就是表达式树,今天就来学习一下表达式树。 认识表达式树 Func<int,int,int> func = (a, b) => 阅读全文
posted @ 2019-12-06 21:23 旗木卡卡罗特 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 在空项目中是没有配置文件的,首先要新建一个,配置文件内容如下,下面来读取各个内容 { "ConnectionStrings": { "DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=_CHANGE_ME;Trusted_Con 阅读全文
posted @ 2019-12-03 21:59 旗木卡卡罗特 阅读(840) 评论(0) 推荐(1) 编辑
摘要: view: <form method="post" enctype="multipart/form-data" action="@Url.Action("Upload")"> <input type="file" id="file" name="file"/> <button>提交</button> 阅读全文
posted @ 2019-12-02 21:18 旗木卡卡罗特 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 禁用 $("#priceGroupType option[value='1']").prop('disabled', true); $("#priceGroupType").select2({ minimumResultsForSearch: -1 }); 启用 $("#priceGroupType 阅读全文
posted @ 2019-11-28 14:08 旗木卡卡罗特 阅读(2146) 评论(0) 推荐(0) 编辑
摘要: 添加字段 alter table 表名 add 字段名 nvarchar(100) not null 修改字段 alter table 表名 alter column 字段名 int not null 删除字段 alter table 表名 drop column 字段名 not null 阅读全文
posted @ 2019-11-21 11:37 旗木卡卡罗特 阅读(326) 评论(0) 推荐(0) 编辑