摘要: 在客户端创建一个username的cookies,其值为gjy,有效期为1天.方法1:Response.Cookies["username"].Value="zxf";Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);方法2:S... 阅读全文
posted @ 2014-07-09 16:54 浪林小哥 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 获取元素的宽度: 如果用$(ele).attr("width")获取的值不带px 如果用$(ele).css("width")获取的值带px//获取鼠标坐标 $(function() { $("#Button2").click(function(event) { alert(event.pageX... 阅读全文
posted @ 2014-07-09 16:38 浪林小哥 阅读(477) 评论(0) 推荐(0) 编辑