jQuery 和global.js 冲突百度和google多次,根据网上的大多数建议和自己测试,解决办法如下:删除global.js 或者global.js文件的10-13行屏蔽//Object.prototype.extend = function(object)//{// return Obje...
分类:
Web程序 时间:
2014-10-26 00:15:57
阅读次数:
238
如题:datagrid中,见官方文档:formatterfunctionThe cell formatter function, take three parameter:value: the field value.rowData: the row record data.rowIndex: th...
分类:
Web程序 时间:
2014-10-26 00:14:43
阅读次数:
245
题目:
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 identical and the nodes have the same value....
分类:
其他好文 时间:
2014-10-25 23:09:06
阅读次数:
447
1. 去除页面的右键菜单$(document).ready(function(){ $(document).bind(“contextmenu”,function(e){returnfalse;});});2、搜索输入框文字的消失当鼠标获得焦点、失去焦点的时候,input输入框文字处理:$(docu...
分类:
Web程序 时间:
2014-10-25 22:53:12
阅读次数:
262
契约式设计可以理解为正则编程的一种实践:如果用我的三脚猫能力将这种实践方法形式化的话,大致如下(如有不正确处,请不吝指正):1、对于方法Method的precondition & postcondition: Function(RegularMthod) = ^ RegularFunctio...
分类:
数据库 时间:
2014-10-25 22:48:51
阅读次数:
343
javascript函数劫持很简单,一般情况下,只要在目标函数触发之前,重写这个函数即可。比如,劫持eval函数的代码如下:var _eval=eval;eval=function(x){ if(typeof x=='undefined') {return;} alert(...
分类:
编程语言 时间:
2014-10-25 21:19:05
阅读次数:
309
var Deferred = require('er/Deferred');var def = new Deferred(); def.then( function () { console.log('b') }).then( function () { ...
分类:
其他好文 时间:
2014-10-25 21:18:55
阅读次数:
228
1 function getScrollTop() { 2 var scrollPos; 3 if (window.pageYOffset) { 4 scrollPos = window.pageYOffset; 5 }else if (document.com...
分类:
编程语言 时间:
2014-10-25 20:02:28
阅读次数:
163
/*JS代码预解析、变量作用域、作用域链等应该能作为学习JS语言的入门必备知识。下边给出些简要解释和一些典型的代码段,若要了解更多,能从网上搜索到更多相关示例。引用网上的一段有关“JS的执行顺序”的解释:如果一个文档流中包含多个script代码段(用script标签分隔的js代..
分类:
Web程序 时间:
2014-10-25 18:53:46
阅读次数:
197
function TServerMethods1.ExecuteSql(const sql: String): Boolean;var d: TfrmDB;begin d := DBPool.Lock; if Assigned(d) then begin try try ...
分类:
其他好文 时间:
2014-10-25 18:46:34
阅读次数:
160