Last active
August 29, 2015 14:07
-
-
Save tonnylitao/487236e819477a2e61eb to your computer and use it in GitHub Desktop.
浏览器兼容性之原生方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
nativeIsArray = Array.isArray, | |
nativeKeys = Object.keys, | |
nativeBind = FuncProto.bind; |
不过好在underscore提供了具有兼容性的_.isArray方法
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不是所有浏览器都支持以下js原生方法,ECMAScript 5才有哦,IE9以下就不支持。