我刚刚获得Foundation 4与Yeoman一起使用Require.js。我用于Require.js main.js的要点是在这里:https://gist.github.com/lkbgift/5164200如何使用Requirement中的Foundation 4中的Zeptos和Yeoman中的Grunt
基金会4的index.html的调用的Zepto这个脚本:
<script>
document.write('<script src=' +
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
'.js><\/script>')
</script>
在require.js,你声明jQuery的路径好像有:
paths: {
jquery: '../components/jquery/jquery'
},
集成zepto代码的正确方法是什么?
ps:有史以来最令人费解的标题。