2018年5月8日

js扩展

摘要: http://www.css88.com/doc/underscore/#findWhere 阅读全文

posted @ 2018-05-08 18:27 YellowCool 阅读(132) 评论(0) 推荐(0) 编辑

2018年4月25日

MYSQL连接字符串参数解析(解释)

摘要: 被迫转到MySQL数据库,发现读取数据库时,tinyint类型的值都被转化为boolean了,这样大于1的值都丢失,变成true了。查阅资料MySQL中无Boolean类型,都是存储为tinyint了,这也无妨,但是读回时不应该都变成boolean啊。网络检索没有解决方案,准备向官方报告bug,细想 阅读全文

posted @ 2018-04-25 16:09 YellowCool 阅读(4181) 评论(0) 推荐(0) 编辑

2018年4月13日

Layer UI 模块化的用法(转)

摘要: 此文章适合入门的同学查看,之前因为项目的原因,在网上找了一套Layer UI做的后台管理系统模板,完全不懂LayUI里面的JS用法,看了官方文档和其它资料后才明白怎么去实现模块化这个例子,但是还是感觉网上的资料写得不够清晰,我尝试把自己的想法写出来,大家可以一起学习 1.首先从简单的入手 加载所需模 阅读全文

posted @ 2018-04-13 11:43 YellowCool 阅读(569) 评论(0) 推荐(0) 编辑

2018年4月12日

另一个C#模拟post请求的例子

摘要: private string returninstallTmnl(AddTmnlInstallParameter model) { string url = ConfigurationSettings.AppSettings["result"].ToString(); var p = "deviceId=" + model.par... 阅读全文

posted @ 2018-04-12 09:02 YellowCool 阅读(287) 评论(0) 推荐(0) 编辑

2018年3月19日

web.coofig 配置跨域问题

摘要: 阅读全文

posted @ 2018-03-19 15:46 YellowCool 阅读(130) 评论(0) 推荐(0) 编辑

2018年1月25日

sqlserver 自增ID插入指定数据(转)

摘要: 注意: 1.set identity_insert只对当前会话生效。 2.set identity_insert 表名 ON 设置后,必须显示指定Id,否则插入错误。如insert into table_name values('111')将报错。 向自增ID插入指定值。 报错:“当 IDENTIT 阅读全文

posted @ 2018-01-25 15:01 YellowCool 阅读(242) 评论(0) 推荐(0) 编辑

2018年1月19日

SqlDbHelper

摘要: using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;namespace Agco.Data{ public cla 阅读全文

posted @ 2018-01-19 11:01 YellowCool 阅读(313) 评论(0) 推荐(0) 编辑

2018年1月17日

随笔

摘要: 如果前台输出的json有[] 说明是把数组传过去了 阅读全文

posted @ 2018-01-17 09:42 YellowCool 阅读(118) 评论(0) 推荐(0) 编辑

2018年1月16日

datatable填装List代替for循环

摘要: public class DataToModelHelper where T : new() { public static IList ConvertToModel(DataTable dt) { //定义集合 IList ts = new List(); T t = new T()... 阅读全文

posted @ 2018-01-16 17:51 YellowCool 阅读(241) 评论(0) 推荐(0) 编辑

2018年1月11日

window.open以post方式提交(转)

摘要: function openWindowWithPost(url,name,keys,values) { var newWindow = window.open(url, name); if (!newWindow) return false; var html = ""; h... 阅读全文

posted @ 2018-01-11 10:33 YellowCool 阅读(2634) 评论(0) 推荐(0) 编辑

导航