Function.prototype.bind = function(b) {
var a = this;
return function() {
a.apply(b, arguments)
}
};
Function.prototype.once = function() {
var b = false,
a = this;
return function() {
if (b) {
return
} else {
b = true;
a.apply(this, arguments)
}
}
};
Function.prototype.before = function(b) {
var a = this;
return function() {
if (b.apply(this, arguments) == false) {
return false
}
return a.apply(this, arguments)
}
};
Function.prototype.after = function(b) {
var a = this;
return function() {
var c = a.apply(this, arguments);
if (c === false) {
return false
}
b.apply(this, arguments);
return c
}
};
String.prototype.hasString = function(f) {
if (typeof f == "object") {
for (var d = 0, g = f.length; d < g; d++) {
if (!this.hasString(f[d])) {
return false
}
}
return true
} else {
if (this.indexOf(f) != -1) {
return true
}
}
};

最新文章

  1. 天气预报API开发
  2. ThinkPHP3.1快速入门(1)基础
  3. socket关联查询
  4. SVN强制解锁操作
  5. CentOS-6.5安装zabbix2.4.4
  6. Ubuntu下解决bash 没有那个文件或目录的方法
  7. Maven Build profiles
  8. mysql.server 文件修改起动多实例
  9. springMVC导出 CSV案例
  10. javascript 一个关于时间排序的算法(一个页面多个倒计时排序)
  11. soap 路由
  12. TDBGrideh表头自动排序设置
  13. [转] Java中ArrayList类的用法
  14. Cortex-M3学习日志(二)-- 按键实验
  15. UVA 839 (13.08.20)
  16. Mysql对自增主键ID进行重新排序
  17. c++ 计算程序运行时间
  18. vb6 控件未注册问题解决
  19. Guava 教程1-使用 Google Collections,Guava,static imports 编写漂亮代码
  20. C# System.IO.FileMode

热门文章

  1. 剑指offer 整数中1 出现的次数
  2. spring MVC之返回JSON数据(Spring3.0 MVC)
  3. rpm命令说明
  4. 安卓开发之探秘蓝牙隐藏API(转)
  5. 我的android学习脚步----------- Button 和监听器setonclicklistener
  6. Robot Framework的环境搭建
  7. 我的第一个Android项目之环境搭建
  8. zencart侧边导航点击一级目录展开二级目录
  9. bzoj1061 志愿者招募
  10. 【python】一个备份把文件备份到邮箱的python实现