06 2017 档案

摘要:var _typeForm = null; $(document).ready(function () { var curUrl = document.location.href;//当前url if (/MSIE (\d+\.\d+);/.test(navigator.userAgent) || /MSIE(\d+\.\d+);/.test(navigator.userAgent... 阅读全文
posted @ 2017-06-28 10:25 张追逐 阅读(6634) 评论(0) 推荐(0)
摘要:html: ng-bind-html ng-src <iframe id="iframe-projects" onload="set(this)" ng-src="{{trustSrc}}" frameborder="0"></iframe> 加载模块: ng-bind-html ng-src 阅读全文
posted @ 2017-06-22 19:34 张追逐 阅读(5651) 评论(1) 推荐(0)
摘要:效果图: 前提:先创建一张表 阅读全文
posted @ 2017-06-21 17:46 张追逐 阅读(1917) 评论(0) 推荐(1)
摘要:Enumerable.Distinct<TSource> Method(IEnumerable<TSource>, IEqualityComparer<TSource>) 也就是使用的Distinct(参数1,参数2); 参数1为原数据,参数2为比较数据 通过IEqualityComparer<T> 阅读全文
posted @ 2017-06-16 10:06 张追逐 阅读(3340) 评论(0) 推荐(0)
摘要:问题源于: 阅读全文
posted @ 2017-06-14 14:53 张追逐 阅读(20221) 评论(1) 推荐(2)
摘要:利用ajax的post方法调用web api接口,出现了以下错误 以下为代码截图: 很显然,传递的参数过多导致的。 接下来,要怎么解决呢? 原来,post方式是由无限制的,而url是有限制的,那么就将url与传递的参数分开。 使用原生态的aiax的post 阅读全文
posted @ 2017-06-13 17:15 张追逐 阅读(4782) 评论(0) 推荐(0)
摘要:SqlDataReader 自带的GetInt32(以及其他的比如GerString等)方法只是获取数据库中对应数据类型的列,并不具有类型转化的功能,所以不能这样使用解决方法有两种1.如需要返回int类型的,那么数据库中的字段就定义为int类型,则用GetInt32可行2.若数据库中定义的不是int 阅读全文
posted @ 2017-06-09 10:10 张追逐 阅读(1537) 评论(1) 推荐(0)