2018年3月10日

摘要: 一般是: Response.Cookies["backurl"].Expires.AddDays(2); 但是,IE浏览器保存Cookie用 Response.Cookies[":member"].Expires=DateTime.Now.AddDays(1); 阅读全文
posted @ 2018-03-10 18:34 幽默是一种心情 阅读(1018) 评论(0) 推荐(0) 编辑
 
摘要: 距顶 offset: '300px' 例1: layer.msg("请先选择项!", { offset: '300px' });例2: layer.confirm("确定删除吗", { btn: ['确认', '取消'], offset: '300px' }, function (index) { 阅读全文
posted @ 2018-03-10 18:24 幽默是一种心情 阅读(24389) 评论(0) 推荐(2) 编辑
 
摘要: <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged"> <asp:ListItem Value="0"> 请选择 阅读全文
posted @ 2018-03-10 18:21 幽默是一种心情 阅读(400) 评论(0) 推荐(0) 编辑
 
摘要: (1)、JQ1.6版本之前(不包括1.6版本)判断checkbox是否被选中用的是attr()方法,HTML代码与上面相同,只放JQ代码: console.log($("input[type='checkbox']").attr('checked'));//false 不要想着在JQ1.6版本之前使 阅读全文
posted @ 2018-03-10 18:17 幽默是一种心情 阅读(9231) 评论(0) 推荐(0) 编辑
 
摘要: function checkAll(chkobj) { if ($(chkobj).children("span").text() == "全选") { $(chkobj).children("span").text("取消"); $("[name=checkbox]").prop("checked 阅读全文
posted @ 2018-03-10 18:14 幽默是一种心情 阅读(389) 评论(0) 推荐(0) 编辑
 
摘要: 1. outline:none;//需要配合仅ie6和ie7支持的css属性blr:expression_r(this.onFocus=this.blur()); 优点:较为常用 缺点:ie6、ie7并不认识outline属性,需要配合仅ie6和ie7支持的css属性blr:expression_r 阅读全文
posted @ 2018-03-10 18:13 幽默是一种心情 阅读(1717) 评论(0) 推荐(0) 编辑
 
摘要: 注:如【SQL Server 代理】已启动,可以省略此步骤一 步骤一、打开【SQL Server Management Studio】,在【对象资源管理器】列表中选择【SQL Server 代理】;鼠标右击【SQL Server 代理】,选择【启动(S)】 步骤二、展开数据库【SQL Server 阅读全文
posted @ 2018-03-10 17:57 幽默是一种心情 阅读(1912) 评论(0) 推荐(0) 编辑
 
摘要: 1. 将时间戳转换成日期格式: function timestampToTime(timestamp) { var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 Y = date.getFullYear() + 阅读全文
posted @ 2018-03-10 17:54 幽默是一种心情 阅读(5917) 评论(0) 推荐(0) 编辑
 
摘要: var resobj = Newtonsoft.Json.JsonConvert.DeserializeObject<Newtonsoft.Json.Linq.JArray>(result1); 阅读全文
posted @ 2018-03-10 17:45 幽默是一种心情 阅读(2401) 评论(0) 推荐(0) 编辑
 
摘要: 一、在前台手动绑定 <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem Value="1">南京</asp:ListItem> <asp:ListItem Value="2">扬州</asp:ListItem> <as 阅读全文
posted @ 2018-03-10 17:43 幽默是一种心情 阅读(1863) 评论(1) 推荐(1) 编辑
 
摘要: 一、简介 1. 什么是NPOI NPOI,顾名思义,就是POI的.NET版本。那POI又是什么呢?POI是一套用Java写成的库,能够帮助开发者在没有安装微软Office的情况下读写Office 97-2003的文件,支持的文件格式包括xls, doc, ppt等。在本文发布时,POI的最新版本是3 阅读全文
posted @ 2018-03-10 17:36 幽默是一种心情 阅读(5121) 评论(0) 推荐(0) 编辑
 
摘要: 例:网页URL : http://localhost:8086/index.aspx?topicId=361 1.设置或获取 href 属性中跟在问号后面的部分:window.location.search alert(window.location.search); 则输出:?topicId=36 阅读全文
posted @ 2018-03-10 16:52 幽默是一种心情 阅读(1953) 评论(0) 推荐(0) 编辑
 
摘要: DateTime.Now.ToString(); //当前时间DateTime.Now.AddDays(7).ToString(); //当前时间加上7天DateTime.Now.AddDays(-7).ToString(); //当前时间减去7天 阅读全文
posted @ 2018-03-10 16:51 幽默是一种心情 阅读(6846) 评论(0) 推荐(0) 编辑
 
摘要: 设置font-weight 属性:normal : 默认值。正常的字体。相当于 400 。声明此值将取消之前任何设置bold : 粗体。相当于 700 。也相当于 b 对象的作用bolder : 比 normal 粗lighter : 比 normal 细100 : 字体至少像 200 那样细200 阅读全文
posted @ 2018-03-10 16:49 幽默是一种心情 阅读(13974) 评论(0) 推荐(0) 编辑
 
摘要: 一,BEGINset @num=6378.138*2*ASIN(SQRT(POW(SIN((lat1*PI()/180-lat2*PI()/180)/2),2)+COS(lat1*PI()/180)*COS(lat2*PI()/180)*POW(SIN((lng1*PI()/180-lng2*PI( 阅读全文
posted @ 2018-03-10 16:43 幽默是一种心情 阅读(918) 评论(0) 推荐(0) 编辑
 
摘要: 解决办法一: 右击要解决方案项目--属性-通用属性—单启动项目 解决方法二:直接选中界面类,右击设为启动项目, 如果还是这样,那么在此项目上按右键 (VS2010的资源管理工具中),点属性,更改设置。 阅读全文
posted @ 2018-03-10 16:41 幽默是一种心情 阅读(763) 评论(0) 推荐(0) 编辑
 
摘要: jQuery 1.父级: jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(expr),但是是查 阅读全文
posted @ 2018-03-10 16:30 幽默是一种心情 阅读(10990) 评论(0) 推荐(0) 编辑
 
摘要: 一,http协议和tcp 、ip协议的关系(1) http是应用层协议,tcp协议是传输层协议,ip协议是网络协议。(2) IP协议主要解决网络路由和寻址问题(3) tcp协议主要解决在IP层协议之上,如何可靠的传输数据,即接收端收到的数据包的大小和顺序,和发送端保持一致。tcp协议是可靠的面相连接 阅读全文
posted @ 2018-03-10 16:09 幽默是一种心情 阅读(2016) 评论(0) 推荐(1) 编辑
 
摘要: 在vs里面创建一个web窗体会产生两种文件:后缀是.aspx和.aspx.cs。 简单的来说,.aspx是表现层,可以简单理解为是写html代码的,界面的设计部分;.cs是对应的逻辑代码,再通过特定的方法把数据显示到前端上面。二者最终会被编译到一个程序集里面,这就是所谓的客户端和服务端的代码分离。 阅读全文
posted @ 2018-03-10 15:28 幽默是一种心情 阅读(2053) 评论(0) 推荐(0) 编辑
 
摘要: +function (){}-function (){}!function (){}~function (){}(function (){})()这种写法可以保证匿名函数立即运行且运行一次传入的 window 对象从全局变成了局部对象 优点有1. 运行更快了2. 可以随意改名 比如 a, 这样便于压 阅读全文
posted @ 2018-03-10 15:15 幽默是一种心情 阅读(2706) 评论(0) 推荐(1) 编辑