在SmartMessageBox中使用智能管理主题输入类型是选择,但如何添加带有值的选项?
$.SmartMessageBox({
title: "AddLearningObject",
content: "ObjectTypeText"",
buttons: "["Cancel"] ["Next"]",
input: "select",
options: "[Video][Assessment][Link]"
}, function (ButtonPress, Value) {
} })
选项由[视频] [评估] [链接]添加,但如何为它们添加值?
您通过数据属性传递值...
例
$.SmartMessageBox({
title: "AddLearningObject",
content: "ObjectTypeText"",
buttons: "["Cancel"] ["Next"]",
input: "select",
options: [$(this).data('value')] "[Video][Assessment][Link]"
}, function (ButtonPress, Value) {
} })