//此方法是数组的indexof属性不支持特此增加此段代码
if (!Array.prototype.indexOf)
{
Array.prototype.indexOf = function(elt /*, from*/)
{
var len = this.length >>> 0;
var from = Number(arguments[1]) || 0;
from = (from < 0)? Math.ceil(from): Math.floor(from);
if (from < 0) from += len;
for (; from < len; from++)
{
if (from in this && this[from] === elt)
return from;
}
return -1;
};
}

最新文章

  1. ABP创建数据库操作步骤
  2. PHP中explode和implode的区别
  3. php 两段文本对比,不同的文字显示高亮
  4. 自定义一个类似UIAlertView的弹出框
  5. oracle删除users表空间
  6. Window.open()方法参数详解
  7. Objective-C:三种文件导入的方式以及atomic和nonatomic的区别
  8. 读取tiled地图
  9. 如何使用VIM的Help
  10. Windows phone 之Image控件
  11. web04--cookie
  12. iOS 9之分屏多任务(Split View)
  13. php基础之三 数组
  14. ​C语言数组作为函数参数
  15. 深入理解计算机系统之旅(四)处理器(CPU)的体系结构
  16. 使用nodejs的http模块创建web服务器
  17. 深究WeixinJSBridge未定义之因
  18. Android Studio 插件开发详解二:工具类
  19. Runtime之成员变量&amp;属性&amp;关联对象
  20. 6-3 二叉树的重建 uva536

热门文章

  1. linux 解压
  2. AFNetworking 提示&quot;The resource could not be loaded because the App Transport Security policy requires the use of a secure connection&quot; 解决办法
  3. JS中的混合模式
  4. UML聚合与组合
  5. find 找出大文件
  6. 分析app和wap手机网站的不同
  7. Netty4.x中文教程系列(四) ChannelHandler
  8. SQL Server代理警报
  9. Struts2(五):ActionSupport
  10. 转:SVN服务器搭建和使用(三)