摘要: int转二进制 Convert.ToString(2304, 2).PadLeft(16,'0'); 二进制转int Convert.ToInt32("0000100100000000",2); 阅读全文
posted @ 2022-06-13 16:22 我不是白菜啊 阅读(45) 评论(0) 推荐(0)
摘要: List<view_devworkinfo> view_devworkinfos = new List<view_devworkinfo>(); var query =entities.view_devworkinfo.GroupBy(pet => pet.netNo); foreach (var 阅读全文
posted @ 2022-06-01 12:03 我不是白菜啊 阅读(243) 评论(0) 推荐(0)
摘要: 1、返回分割结果的个数 DELIMITER $$ DROP function IF EXISTS `func_split_TotalLength` $$ CREATE DEFINER=`root`@`localhost` FUNCTION `func_split_TotalLength` (f_st 阅读全文
posted @ 2022-05-23 10:09 我不是白菜啊 阅读(1707) 评论(0) 推荐(0)
摘要: myChart.on('click', function(obj){}) 阅读全文
posted @ 2022-05-19 09:04 我不是白菜啊 阅读(17) 评论(0) 推荐(0)
摘要: //自己写一个List 行转列 返回table的方法 public DataTable RowToColByList<T>(List<T> list,string colName) { DataTable dt = new DataTable(); var properties = new List 阅读全文
posted @ 2022-05-17 16:06 我不是白菜啊 阅读(500) 评论(0) 推荐(0)
摘要: 如果引用路径,js文件都没问题的情况下,引用js的代码写在 阅读全文
posted @ 2022-05-16 15:31 我不是白菜啊 阅读(786) 评论(0) 推荐(0)
摘要: nmp安装NPOI 读取Excel为DataTable 1 public static DataTable DoSql(string url) 2 { 3 try 4 { 5 //实例化DataTable来存放数据 6 DataTable dt = new DataTable(); 7 //stri 阅读全文
posted @ 2022-05-13 17:30 我不是白菜啊 阅读(49) 评论(0) 推荐(1)
摘要: byte[] bytes; bytes = BitConverter.GetBytes(Convert.ToInt32(33));//先把33转换为byte数组,长度为4 short s1 = BitConverter.ToInt16(new byte[2] { bytes[0], bytes[1] 阅读全文
posted @ 2022-05-05 11:21 我不是白菜啊 阅读(400) 评论(0) 推荐(0)
摘要: $(obj.tr[0]).attr('data-index') 阅读全文
posted @ 2022-04-08 16:33 我不是白菜啊 阅读(440) 评论(0) 推荐(0)
摘要: $(".layui-laypage-em").next().html() 阅读全文
posted @ 2022-04-08 15:53 我不是白菜啊 阅读(487) 评论(0) 推荐(0)