- 博客(7)
- 收藏
- 关注
原创 数据转换-16位高低转换
数据转换` 提示:用到什么更新什么。文章目录数据转换一、16位有符号整数转高低8位二、高低八位转16位有符号整数总结提示:以下是本篇文章正文内容,下面案例可供参考一、16位有符号整数转高低8位 Int16 val = 12; //16位有符号整数 //获取高低8位 string high = ((val >> 8) & 0xff).ToString("X"); //高8位 string low = (val & 0xff).ToStri
2022-05-09 07:49:12 3589
原创 RouYi bootstrap-fileinput 上传回显编辑添加删除
RouYi bootstrap-fileinput 上传回显编辑添加删除文章目录RouYi bootstrap-fileinput 上传回显编辑添加删除前言一、fileinput.js修改二、设置页面fileinput.js调用1.页面初始化控件2.后台delete方法3.页面点击删除事件不触发,任意上传一张图片,删除正常总结前言因需求,需要获取图片的newfilename newfilepath并且要给用户展示上传时候的filename,实现如下。一、fileinput.js修改修改file
2022-05-01 23:19:40 4143 2
原创 Non-static method think\DbManager::connect() should not be called statically
Thinkphp 6.0 使用tp5er 中数据连接失败是因为tp5 和tp6 的目录不一样,在原来的Db:connect();前面加上 \think\facade\
2020-11-28 13:25:38 1848 1
原创 .net core 本地使用ip访问
每个项目下面有一个隐藏文件夹,.vs文件夹 。里面有一个文件applicationhost.config<binding protocol="http" bindingInformation="*:55732:localhost" />在这个节点下面复制一个,把localhost 改成你本地的ip<bindings> <binding protocol="http" bindingInformation="*:55732:localhost.
2020-10-08 15:45:26 2254 1
原创 ASP.NET Core 在Controller的构造函数中设置ViewBag无效,NullReferenceException: Object reference not set to an in
向上错误提示{"success":false,"code":500,"count":0,"data":null,"msg":"System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList.GetListItemsWithValueField()\r\n at Micro
2020-09-20 10:12:09 981
原创 .net core 3.1 如何使用 csredis ?
csredis 看网上评论中说到没有被限制,但是这个东西到底如何使用?没有找到一个可以确认的方式。使用方式一注入依赖 services.AddScoped<Dis.IServices.ICsRedisBase, Dis.Services.CsRedisBase>();在其他注入依赖的构造函数里面声明一下,然后调用下对应的操作方法 get set 等等,可以对csredis 的方法封装一下 /// <summary> /// /// &l
2020-07-30 22:21:04 795
原创 net core FromBody 如何接收对象中的list
.net core FromBody 如何接收对象中的list?[HttpPost("setdata")]public async Task<IActionResult> SetData([FromBody]TestData model) {}//订单信息public class TestData{ public string Id { get; set; } public string Name{ get; set; } //多个商品 ...
2020-07-21 15:40:56 2630
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人