开心

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: .Net 框架: 是由微软开发,一个致力于敏捷软件开发(Agile softwaredevelopment)、快速应用开发(Rapidapplication development)、平台无关性和网络透明化的软件开发平台。 三个主要组成部分: CLR、服务框架(Services Framework: 阅读全文
posted @ 2016-02-21 22:21 大喜 阅读(214) 评论(0) 推荐(0)
摘要: 1.数据库日志 把错误写入数据库的日志中。 2.系统日志 全局应用程序类(.asax)实现: 导入System.Diagnostics ; void Application_Error(object sender,EventArgs e) { Exception errinfo =Server.Ge 阅读全文
posted @ 2016-02-20 21:50 大喜 阅读(183) 评论(0) 推荐(0)
摘要: onkeyup="this.value=this.value.replace(/\D/g,'') 这是个正则式验证,用来验证输入值的规则; 当输入值的键盘抬起时触发这个事件。this.value表示此输入框的值,/\D/g为正则表达式,用来匹配所有非数字字符; 此句功能为:将输入值为非数字的字符替换 阅读全文
posted @ 2016-02-19 09:50 大喜 阅读(2972) 评论(0) 推荐(0)
摘要: //添加Cookie //第一种添加Cookie方法 HttpCookie myCookie = new HttpCookie("userrole"); myCookie.Values["a"] = "a"; myCookie.Values["b"] = "b"; myCookie.Expires. 阅读全文
posted @ 2016-02-19 09:38 大喜 阅读(196) 评论(0) 推荐(0)
摘要: 前台框架: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="code.aspx.cs" Inherits="code" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xht 阅读全文
posted @ 2016-02-18 16:27 大喜 阅读(360) 评论(0) 推荐(0)
摘要: var elem=function(){alert(1) ;return function(){alert(2)}}//函数赋给变量 document.getElementById("btn").onclick=elem; //触发函数变量 elem or elem(); elem :加载无反应,点 阅读全文
posted @ 2016-02-18 09:33 大喜 阅读(253) 评论(0) 推荐(0)
摘要: //前台提交 <form action="a.ashx" method="post"> <input type="hidden" name="hidden" value="4" /> @x <input type="submit" value="click" id="@x"/> </form> as 阅读全文
posted @ 2016-02-18 09:29 大喜 阅读(2163) 评论(0) 推荐(0)
摘要: C#后台调用前台js代码前台js<script type="text/javascript" language="javascript"> function Ceshi() { var a = "你们好啊!" alert(a); }</script><asp:Button ID="Button1" 阅读全文
posted @ 2016-02-17 09:23 大喜 阅读(15220) 评论(1) 推荐(0)
摘要: 1.$(function(){$(#a).on{'click',function(){}}})2.$(#a > #b).css('background','red');//#a的直接子元素就是#b.3.$(#a #b).css('background','red');//#a的直接间接或子元素就是# 阅读全文
posted @ 2016-02-16 19:44 大喜 阅读(178) 评论(0) 推荐(0)
摘要: //用户同意授权,获取code public static string Get_code(string RedirectUri) { string MyAppid = "";//微信应用Id string URL = "https://open.weixin.qq.com/connect/oaut 阅读全文
posted @ 2016-01-29 15:47 大喜 阅读(11227) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
坦然 会增进信任 - 信任 感情才会升华