摘要: 用了这么久,还真没有注意过onFocus和onClick的区别。原来这两者的使用和体验是差很远的。onClick 当对象被单击或选取时触发;onFocus当对象获得焦点时触发。这么一说,大家就知道onClick是需要鼠标点击才有效。而onFocus只要获得焦点时就触发,这就可以用键盘的TAB来跳格触发。在实现体验就差很远了。 阅读全文
posted @ 2012-12-23 22:27 ShunYea 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 下面是时间戳查询如果你数据库时间显示的是 2011-04-05 那就不需要 用 strtotime 时间戳转换函数1 $timea = strtotime($_POST['timea']);2 $timeb = strtotime($_POST['timeb']);3 $sq2="select * from `ecs_order_info` where add_time between '$timea' and '$timeb' and `quanxian`='$dangqian' order by `o 阅读全文
posted @ 2012-12-22 21:51 ShunYea 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: 用jQuery的ajax方法,结合PHP,轻松实现省市级的二级联动:新建area.php 1 <? 2 $dbc=mysqli_connect("localhost","xxxx","xxxxxxxxxx","test") or die("can not connect to mysql ".mysqli_error()); 3 mysqli_query($dbc,"set names utf8"); 4 header("Content-Type:text/h 阅读全文
posted @ 2012-12-22 20:36 ShunYea 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 首先SqlDataReader 不支持分页 用DataSet或DataTable实现 如果打开AllowPaging="True",总是提示激发了未处理的事件“PageIndexChanging“,则 修改方法: 一要在girdview 后面加 OnPageIndexChanging="GridView1_PageIndexChanging 二要cs页面中添加 protected void... 阅读全文
posted @ 2008-06-11 15:16 ShunYea 阅读(164) 评论(0) 推荐(0) 编辑