OCP:open-closed principle 不可修改 可扩展LSP: liskov substitute principle For a function,a subtype must be able to substitute its base type一个模型,如果孤立地看,并不具有真正...
分类:
其他好文 时间:
2014-10-07 21:23:44
阅读次数:
167
在添加dom时,会同时添加按钮,或者事件。在动态添加的时候,应该用 $(document).on('event','selector',function(){.......})例如:
分类:
其他好文 时间:
2014-10-07 19:53:34
阅读次数:
224
问题: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identic...
分类:
其他好文 时间:
2014-10-07 17:55:43
阅读次数:
127
function suber (name) { this.name=name; this.frend=["xx","yy"]; } suber.prototype.sayName = function() { ...
分类:
其他好文 时间:
2014-10-07 16:58:23
阅读次数:
180
$(document).ready(function () { setInterval("startrequest()", 300 * 1000);//5分钟调用一次 }); function startrequest() { ...
分类:
Web程序 时间:
2014-10-07 13:46:13
阅读次数:
155
$(function () { $(document).keydown(function (event) { if (event.keyCode == 13) { $("#select").click(); ...
分类:
Web程序 时间:
2014-10-07 12:51:53
阅读次数:
129
$(document).ready(function () { setInterval("startrequest()", 300 * 1000);//5分钟调用一次 }); function startrequest() { $.post("/Admin/OrderInfo/GetMessage"...
分类:
Web程序 时间:
2014-10-07 11:12:03
阅读次数:
160
nuzhang练习事件的添加移除-title
$(document).ready(function(e) {
//button中包含on的button的事件
$('button:contains(on)').click(function(){
//alert('ok');
////button中包含mybtn的button的事件. on在选择元素上绑定...
分类:
Web程序 时间:
2014-10-07 11:11:38
阅读次数:
165
1.构造函数法类是对象的模板,定义了对象共有的方法属性数据 等,在javascript中一个函数就是一个对象,也可以看做一个类的构造方法。所以我们可以像以下方式定义类: //1.经典的构造方法 Q=function(name){ ...
分类:
编程语言 时间:
2014-10-07 01:58:32
阅读次数:
298
一)服务器端代码演示1)常量定义:const sDepartment = 'Department'; sEmployees = 'Employees';2)查询数据:function TServerMethods1.GetDepartmentEmployees(const AID: string.....
分类:
Web程序 时间:
2014-10-07 01:39:12
阅读次数:
1711