随笔- 40  文章- 0  评论- 1  阅读- 27465 
06 2017 档案
C#四舍五入、上取整、下取整
摘要:四舍五入: 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 阅读(4195) 评论(0) 推荐(0) 编辑
SQL语句:两个时间区间段,只要有交集,就能筛选出来
摘要:设定固定时间段: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 阅读(845) 评论(0) 推荐(0) 编辑
url传参中文乱码问题
摘要:页面A: document.getElementById("a").href = "A.aspx?keyword=" + encodeURI(encodeURI("我的传参")); 页面B: alert(decodeURI(getQueryString("keyword"))); function  阅读全文
posted @ 2017-06-06 15:27 dianli 阅读(189) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示