会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RookieCoderAdu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
31
下一页
2021年8月12日
C#报错 类型初始值设定项引发异常
摘要: 原因很简单。 配置文件中设置连接字符串的名字和你使用的名字不匹配。 导致读取配置的时候查不到,所以报错
阅读全文
posted @ 2021-08-12 16:02 RookieCoderAdu
阅读(813)
评论(0)
推荐(0)
2021年8月6日
html滚动条样式修改(背景透明)
摘要: /*修改滚动条样式*/ #lyric_detail::-webkit-scrollbar{ width:10px; height:10px; /**/ } #lyric_detail::-webkit-scrollbar-track{ opacity:0;/*完全透明*/ border-radius
阅读全文
posted @ 2021-08-06 00:09 RookieCoderAdu
阅读(699)
评论(0)
推荐(0)
2021年7月31日
vue项目结构
摘要:
阅读全文
posted @ 2021-07-31 00:10 RookieCoderAdu
阅读(26)
评论(0)
推荐(0)
2021年7月29日
C#将SqlDataReader转换成泛型类
摘要: public static T DataReaderToEntity<T>(IDataReader dr, T entity) { try { PropertyInfo[] pilist = entity.GetType().GetProperties(); foreach (PropertyInf
阅读全文
posted @ 2021-07-29 17:41 RookieCoderAdu
阅读(257)
评论(0)
推荐(0)
2021年7月26日
C#将当前时间转化成int类型数字
摘要: DateTime time = DateTime.Now; time.Year*Math.Pow(10,10)+ time.Month*Math.Pow(10,8)+ time.Day*Math.Pow(10,6)+ time.Hour*Math.Pow(10,4)+ time.Minute*Mat
阅读全文
posted @ 2021-07-26 16:26 RookieCoderAdu
阅读(2956)
评论(0)
推荐(0)
2021年7月22日
C#读取json文件,返回字符串
摘要: 使用下列方法可以实现将json文件的内容读取出来,返回字符串。 public string Readjson() { string path = Path.GetFullPath("../../..") + "\\Json\\BS002.json";//JSON文件路径 StreamReader s
阅读全文
posted @ 2021-07-22 14:48 RookieCoderAdu
阅读(569)
评论(0)
推荐(0)
2021年7月21日
C#将对象转化成json字符串
摘要: 一般情况下,使用 JsonConvert.SerializeObject(obj) 即可 也可以使用下面的方法 public string ToJson<T>(T obj) where T : class { string res = ""; Type t = typeof(T); foreach(
阅读全文
posted @ 2021-07-21 17:00 RookieCoderAdu
阅读(896)
评论(0)
推荐(1)
C#解析Json字符串
摘要: 对于一般的Json字符串,比如 {"data":"1","msg":"OK"} 直接使用 JObject jo=JObject.Parse(obj); string msg=jo["msg"].ToString(); 即可。 对于复杂的Json字符串,比如 {"A":{"ServiceId":"S0
阅读全文
posted @ 2021-07-21 11:41 RookieCoderAdu
阅读(454)
评论(0)
推荐(0)
2021年7月20日
解决win7 无法使用postman
摘要: 老环境使用的是win7,准备下载postman测试,结果楞是都打不开,安装到一半就卡住了。 搜寻了各种方法,包括添加POSTMAN_DISABLE_GPU环境变量,都没用。 最后我的办法是 不使用postman!!! 是不是简单有效!别急,是不使用程序版的,使用网页插件版的。 只需一个Chrome浏
阅读全文
posted @ 2021-07-20 16:47 RookieCoderAdu
阅读(2286)
评论(1)
推荐(0)
2021年7月19日
C#使用HttpWebRequest发送请求
摘要: 使用HttpWebRequest可以帮助我们发送web请求 //发送post请求 public string SendPostReq(string param) { string content = ""; HttpWebRequest request = (HttpWebRequest)HttpW
阅读全文
posted @ 2021-07-19 17:37 RookieCoderAdu
阅读(395)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
31
下一页
公告