会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
棂信
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2020年8月18日
JS删除数组中指定索引的对象
摘要: list.splice(index, length); 第一个参数是索引位置,第二个参数是删除对象数目
阅读全文
posted @ 2020-08-18 10:07 棂信
阅读(2309)
评论(0)
推荐(0)
2020年8月17日
根据API获取数据内容
摘要: class Api { /// <summary> /// 从API中获取数据 /// </summary> /// <param name="url"></param> /// <returns></returns> public static string HttpGet(string url)
阅读全文
posted @ 2020-08-17 14:06 棂信
阅读(379)
评论(0)
推荐(0)
2020年8月13日
td不被内容撑开
摘要: 在td所在table设置属性: width:100%; table-layout:fixed; 设置td属性: overflow:hidden white-space:nowrap
阅读全文
posted @ 2020-08-13 15:59 棂信
阅读(749)
评论(0)
推荐(0)
C#导出纯文本文件
摘要: C#后台导出纯文本文件,解决SQL文件利用js导出时打开乱码。需要换行直接在字符串中换行就可以了。 string str = $@" aaaa bbbb"; byte[] Buff2 = System.Text.Encoding.Default.GetBytes(str); return File(
阅读全文
posted @ 2020-08-13 11:11 棂信
阅读(462)
评论(0)
推荐(0)
JS导出Excel文件(数据量过大会导致网页崩溃导出失败)
摘要: function JSONToExcelConvertor(JSONData, FileName) { //先转化json if (JSONData.length == 0) { layer.msg("请选择导出的数据!"); return false; } var arrData = typeof
阅读全文
posted @ 2020-08-13 08:43 棂信
阅读(3296)
评论(0)
推荐(0)
C#后台导出Excel文件
摘要: 必须为继承Controller的类: Layui接口返回字符串数据:res JObject jr = (JObject)JsonConvert.DeserializeObject(res); JArray data = (JArray)JsonConvert.DeserializeObject(jr
阅读全文
posted @ 2020-08-13 08:37 棂信
阅读(460)
评论(0)
推荐(0)
2020年8月12日
Echarts仪表盘大小
摘要: 设置仪表盘大小时,不能使用grid属性去设置,需要 在series中对每个仪表盘设置 radius:'80%' 来调整仪表盘大小
阅读全文
posted @ 2020-08-12 14:35 棂信
阅读(8231)
评论(0)
推荐(2)
2020年8月8日
去除GEThttp://localhost:45767/favicon.ico 404报错
摘要: 在html的<head>中加入 <link rel="shortcut icon" href="#" /> 即可。
阅读全文
posted @ 2020-08-08 17:00 棂信
阅读(190)
评论(0)
推荐(0)
若VUE和Echarts内容处于同一个DIV下,先渲染VUE再渲染Echarts,否则会导致Echarts渲染 不出来
摘要: <tr id="Part1"> <td style="width:30%"> <div id="E1" style="height:200px"></div> </td> <td> <P>TOP1:</P> <div >{{msg1}}</div> </td> <td> <p>TOP2:</p> <
阅读全文
posted @ 2020-08-08 15:44 棂信
阅读(507)
评论(0)
推荐(0)
Layui多行表头导致多出空白内容处理方法
摘要: 在done函数内加上以下代码即可: $(".layui-table-body").find("td").each(function (index, element) { if ($(this).attr("data-field") >= 0) { $(this).css("display", "no
阅读全文
posted @ 2020-08-08 09:06 棂信
阅读(1505)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告
点击右上角即可分享