Skip to content

Instantly share code, notes, and snippets.

@tonnylitao
Last active August 29, 2015 14:07
Show Gist options
  • Save tonnylitao/487236e819477a2e61eb to your computer and use it in GitHub Desktop.
Save tonnylitao/487236e819477a2e61eb to your computer and use it in GitHub Desktop.
浏览器兼容性之原生方法
var
nativeIsArray = Array.isArray,
nativeKeys = Object.keys,
nativeBind = FuncProto.bind;
@tonnylitao
Copy link
Author

不是所有浏览器都支持以下js原生方法,ECMAScript 5才有哦,IE9以下就不支持。

@tonnylitao
Copy link
Author

不过好在underscore提供了具有兼容性的_.isArray方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment