3

在 SmartMessageBox 输入类型中使用智能管理主题是选择但如何添加具有值的选项?

$.SmartMessageBox({
        title: "AddLearningObject",
        content: "ObjectTypeText"",
        buttons: "["Cancel"] ["Next"]",
        input: "select",
        options: "[Video][Assessment][Link]"
    }, function (ButtonPress, Value) {

    }   })

[Video][Assessment][Link]添加的选项,但如何为它们添加值?

4

1 回答 1

1

您通过数据属性传递值...

例子

$.SmartMessageBox({
    title: "AddLearningObject",
    content: "ObjectTypeText"",
    buttons: "["Cancel"] ["Next"]",
    input: "select",
    options: [$(this).data('value')] "[Video][Assessment][Link]"
}, function (ButtonPress, Value) {

}   })
于 2018-07-21T03:22:59.280 回答