摘要:
一、新增 UserInfo user = new UserInfo() { UserName = "jamsebing", UserPass = "123456" }; db.UserInfo.Add(user); 二、删除之 [Entry].State=Deleted var user = new 阅读全文
摘要:
一、Application_End Application_End:网站关闭,或重启时,会触发该方法 二、Application_Start 第一个访问网站的用户会触发该方法. 通常会在该方法里定义一些系统变量,如聊天室的在线总人数统计,历史访问人数统计的初始化等等均可在这里定义 三、Session 阅读全文
摘要:
/// /// Cors扩展 /// public static class IPipelinesExtensions { /// /// CORS Enable /// /// pipelines public static void UserCors(this IP... 阅读全文
摘要:
1.prototype是函数的一个属性(每个函数都有一个prototype属性),这个属性是一个指针,指向一个对象。它是显示修改对象的原型的属性。 2.__proto__是一个对象拥有的内置属性(请注意:prototype是函数的内置属性,__proto__是对象的内置属性),是JS内部使用寻找原型 阅读全文
摘要:
参考链接:http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance_continued.html 阅读全文
摘要:
一、对象冒充 二、call()方式 三、apply() apply方法接受2个参数, A、第一个参数与call方法的第一个参数一样,即赋值给类(即方法)中出现的this B、第二个参数为数组类型,这个数组中的每个元素依次赋值给类(即方法)所接受的参数 四、原型链方式 即子类通过prototype将所 阅读全文
摘要:
1.App.config 2.根目录下quartz_jobs.xml,需调始终复制 3.Cron表达式范例 阅读全文
摘要:
1. jexus防止产生 *.core文件 # vi jws 新增: ulimit -c 0 >/dev/null 2>&1 2.删除*.core # sudo rm -rf *.core 阅读全文
摘要:
前言 在客户端通过浏览器发出第一次请求某一个URL时,根据 HTTP 协议的规定,浏览器会向服务器传送报头(Http Request Header),服务器端响应同时记录相关属性标记(Http Reponse Header),服务器端的返回状态会是200,格式类似如下:HTTP/1.1 200 OK 阅读全文