Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动渲染这里为什么要把path转换成小写的呢? #80

Open
qidizi opened this issue Jul 17, 2014 · 0 comments
Open

自动渲染这里为什么要把path转换成小写的呢? #80

qidizi opened this issue Jul 17, 2014 · 0 comments

Comments

@qidizi
Copy link

qidizi commented Jul 17, 2014

root.find('[data-widget]').each(function(i, element) {
if (!exports.isDataApiOff(element)) {
modules.push(element.getAttribute('data-widget').toLowerCase())
elements.push(element)
}
})

再下面是这样用
seajs.use(modules

像linux是区分大小写的,这么一转化,如果我路径中有大小写那就会加载不出来了.

不明白逻辑上为什么要这样处理?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant