2017年8月15日
摘要: 翻译:深入 AngularUI Router 原文地址:http://www.ng-newsletter.com/posts/angular-ui-router.html ui-router: https://angular-ui.github.io/ui-router/site/#/api/ui. 阅读全文
posted @ 2017-08-15 10:55 dianli 阅读(133) 评论(0) 推荐(0) 编辑
2017年7月29日
摘要: 问题:最近在IIS上部署web项目的时候,发现浏览器总是报找不到woff、woff2字体的错误。导致浏览器加载字体报404错误,白白消耗了100-200毫秒的加载时间。 原因:因为服务器IIS不认SVG,WOFF/WOFF2 这几个文件类型,只要在IIS上添加MIME 类型即可。 解决方法 1、打开 阅读全文
posted @ 2017-07-29 11:08 dianli 阅读(69) 评论(0) 推荐(0) 编辑
2017年6月22日
摘要: 四舍五入: Math.Round(0.0) //0Math.Round(0.1) //0Math.Round(0.2) //0Math.Round(0.3) //0Math.Round(0.4) //0Math.Round(0.5) //0Math.Round(0.6) //1Math.Round( 阅读全文
posted @ 2017-06-22 15:11 dianli 阅读(4183) 评论(0) 推荐(0) 编辑
2017年6月19日
摘要: 设定固定时间段:8.2 》8.5 也就是:两个时间段,只要有交集就能筛选出来: 下面的两个sql语句,实现的效果是一样的: 1:$sql="select * from fs_ads where `start_time` <= '$ed' and `end_time` >= '$sd'"; 2: $s 阅读全文
posted @ 2017-06-19 14:42 dianli 阅读(830) 评论(0) 推荐(0) 编辑
2017年6月6日
摘要: 页面A: document.getElementById("a").href = "A.aspx?keyword=" + encodeURI(encodeURI("我的传参")); 页面B: alert(decodeURI(getQueryString("keyword"))); function  阅读全文
posted @ 2017-06-06 15:27 dianli 阅读(188) 评论(0) 推荐(0) 编辑
2017年5月25日
摘要: 参考资料:http://blog.csdn.net/wangnaisheng/article/details/32330857# 阅读全文
posted @ 2017-05-25 17:09 dianli 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1、StreamToMemoryStream 2.Stream.Length报错:此流不支持查找 阅读全文
posted @ 2017-05-25 17:07 dianli 阅读(908) 评论(0) 推荐(0) 编辑
2017年5月22日
摘要: 出自:http://www.cnblogs.com/knowledgesea/p/3897665.html 1.简单的linq语法 2.带where的查询 3.简单的函数计算(count,min,max,sum) 4.排序order by desc/asc 5.top(1) 6.跳过前面多少条数据取 阅读全文
posted @ 2017-05-22 09:12 dianli 阅读(266) 评论(0) 推荐(0) 编辑
2016年3月2日
摘要: 近期,我们在调试独立的微信商城的时候,遇到了一些问题,比如:微信的redirect_uri参数错误,这是一个很普遍存在的问题,当然解决起来并不难,首先,我们得去找到发生这一事件的原因。 可能1:授权目录 支付授权目录是网站发起请求的页面所在目录,并且必须是能通过url地址访问的(与真实物理目录路径无 阅读全文
posted @ 2016-03-02 08:58 dianli 阅读(1628) 评论(0) 推荐(0) 编辑
2015年12月8日
摘要: 图片无法序列化后传输,但我们可以将图片转二进制字符串传输。然后在服务端将二进制字符串转图片。 将图片转字符串的例子: private byte[] BmpToJpegBuff(Image img) { ImageConverter converter = new ImageConverter(); 阅读全文
posted @ 2015-12-08 13:33 dianli 阅读(384) 评论(0) 推荐(0) 编辑