Skip to content

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

@qidizi

Description

@qidizi

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是区分大小写的,这么一转化,如果我路径中有大小写那就会加载不出来了.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions