Created
October 9, 2017 02:20
-
-
Save hawx1993/08bc52df8f64e0ce44b4c55456d5c74f to your computer and use it in GitHub Desktop.
判断是否是js文件
This file contains 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 isJS = function (file) { return /\.js(\?[^.]+)?$/.test(file); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment