leohxj
8/19/2013 - 2:32 AM

IE加载jQuery.js, 其他加载zepto.js

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>