Skip to content

Instantly share code, notes, and snippets.

@leohxj
Created August 19, 2013 02:32
Show Gist options
  • Save leohxj/6265330 to your computer and use it in GitHub Desktop.
Save leohxj/6265330 to your computer and use it in GitHub Desktop.
IE加载jQuery.js, 其他加载zepto.js
<script>
// This detects whether the browser requires the Zepto or Ender library
document.write('<script src=js/' +
('__proto__' in {} ? 'zepto' : 'jquery') +
'.min.js><\/script>');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment