Skip to content

page初始化的位置不完善 #1

@songhlc

Description

@songhlc

iuap.frameworks.ui.js 928行

$(function(){
        UM.page = new Page();
})

如果页面上的.um-page是动态生成的,则在加载iuap.frameworks.ui.js 的时候初始化调用page的_init方法时找不到对应的element。

建议做为框架把初始化代码从框架中拿出来,由用户自定义初始化的位置,

例如添加UM.initPage()方法

UM.initPage = function() {
    UM.page = new Page()
}

或其他方式。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions