会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LBO.net
保持饥饿!保持愚蠢!
->C#在线编辑
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
27
下一页
2020年9月21日
C# 根据Url下载文件/获取文件流
摘要: /// <summary> /// http下载文件 /// </summary> /// <param name="url">下载文件地址</param> /// <returns></returns> public static Stream HttpDownload(string url) {
阅读全文
posted @ 2020-09-21 16:01 LBO.net
阅读(7722)
评论(1)
推荐(0)
2020年9月1日
C# 模拟表单提交
摘要: #region 表单提交 /// <summary> /// 使用Post方法获取字符串结果 /// </summary> /// <param name="url"></param> /// <param name="formItems">Post表单内容</param> /// <param n
阅读全文
posted @ 2020-09-01 15:25 LBO.net
阅读(738)
评论(0)
推荐(0)
C# 获取Url路径的参数信息
摘要: Uri uri = new Uri("url路径"); string parmValue=HttpUtility.ParseQueryString(uri.Query).Get("参数名");
阅读全文
posted @ 2020-09-01 15:19 LBO.net
阅读(547)
评论(0)
推荐(0)
C# 采集页面数据
摘要: using HtmlAgilityPack; using Nito.AsyncEx; using System; using System.Diagnostics; using System.IO; using System.IO.Compression; using System.Net; usi
阅读全文
posted @ 2020-09-01 10:19 LBO.net
阅读(347)
评论(0)
推荐(0)
2020年7月10日
.net core 3.1 设置可跨域
摘要: 1、ConfigureServices方法里写如下代码: services .AddCors(builder => { builder.AddDefaultPolicy(configure => { configure.AllowAnyOrigin().AllowAnyMethod().AllowA
阅读全文
posted @ 2020-07-10 09:04 LBO.net
阅读(558)
评论(0)
推荐(1)
2020年7月2日
C# json字符串转化成Dictionary
摘要: var json = @"{ 'DisplayName': '新一代算法模型', 'CustomerType': 1, 'Report': { 'TotalCustomerCount': 1000, 'TotalTradeCount': 50 }, 'CustomerIDHash': [1,2,3,
阅读全文
posted @ 2020-07-02 15:56 LBO.net
阅读(3953)
评论(0)
推荐(0)
2020年5月29日
JS MD5加密(16/32位)
摘要: String.prototype.MD5 = function (bit) { var sMessage = this; function RotateLeft(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32
阅读全文
posted @ 2020-05-29 08:46 LBO.net
阅读(3922)
评论(0)
推荐(0)
2020年5月25日
input输入框禁止显示历史记录
摘要: 在输入input时会提示原来输入过的内容,还会出现下拉的历史记录,禁止这种情况只需在input中加入:autocomplete=“off” <input type="text" autocomplete="off" /> autocomplete 属性是用来规定输入字段是否启用自动完成的功能。 补充
阅读全文
posted @ 2020-05-25 09:47 LBO.net
阅读(786)
评论(0)
推荐(0)
2020年5月14日
C# 操作符 << 与 >>
摘要: 1、<< 左移操作符: 左移操作符,将第一个操作数向左移动第二个操作数指定的位数,空出的位置补0。左移相当于乘. 左移一位相当于乘2;左移两位相当于乘4;左移三位相当于乘8。 如:x<<1= x*2x<<2= x*4x<<3= x*8x<<4= x*16 2、>> 右移操作符: 右移位运算符(>>)
阅读全文
posted @ 2020-05-14 10:53 LBO.net
阅读(1030)
评论(0)
推荐(0)
如何在IIS上发布网站
摘要: 如何在IIS上发布网站
阅读全文
posted @ 2020-05-14 10:19 LBO.net
阅读(255)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
27
下一页
公告
//返回顶部