12 2013 档案

摘要:----------------js取消事件冒泡:window.event.cancelBubble=true;--------------jquery事件参数可以防止事件冒泡;$("#id").click(function(e){ alert("郭"); e.stopPropagation();//防止冒泡});-----------------除了return false之外;这样在id之外的标签事件就不会触发;$("#id").click(function(e){ alert("郭"); e.preventD 阅读全文
posted @ 2013-12-19 09:44 aiaito 阅读(455) 评论(0) 推荐(0)
摘要:-----------------扩展方法:$.extend({ "max": function (a, b) { if (a > b) return a; }, "min": function () { if (a < b) return a; }------------------扩展实例方法: $.fn.extend({"checked":$(this).attr("checked","true")}); $(function () { alert($.max(55,34)); 阅读全文
posted @ 2013-12-19 09:32 aiaito 阅读(153) 评论(0) 推荐(0)
摘要:users:用户表Orderss:订单表U_O:用户和订单的中间表OrdersEntities1 oe = new OrdersEntities1(); var result = from user in oe.Users join o_u in oe.U_OC on user.Id equals o_u.UId into o_uList from o_u1 in o_uList.DefaultIfEmpty() join o in oe.Orderss on o_u1.OId equals o.Id into o_u1List from o_u2 in o_u1List.DefaultIf. 阅读全文
posted @ 2013-12-13 14:06 aiaito 阅读(607) 评论(0) 推荐(0)
摘要:--创建数据库USE yujuCREATE database YuJuon primary( name='YuJu', filename='B:\ceshi数据库\YuJu.mdf', maxsize=1024mb, filegrowth=10%)log on( name='YuJu_log', filename='B:\ceshi数据库\YuJu.ldf', size=10mb, maxsize=1024mb, filegrowth=10mb)--DROP database YuJu--CREATE table Teacher( 阅读全文
posted @ 2013-12-10 15:10 aiaito 阅读(356) 评论(0) 推荐(0)
摘要:----------------------原始的ajax:function guo() { var xhr if (XMLHttpRequest) { xhr = new XMLHttpRequest(); } else { xhr = ActiveXObject("XMLHttpRequest"); } //ie5 和ie6是activeobject; //请求方式,地址,是否异步; xhr.open("get", "../Handler/test.ashx", true); //发送请求 xhr.send(); //readys 阅读全文
posted @ 2013-12-10 15:04 aiaito 阅读(167) 评论(0) 推荐(0)