How to create jQuery Dialog in function

后端 未结 3 1335
抹茶落季
抹茶落季 2021-02-05 11:01

Does anyone know how to create a jQuery Dialog in a function? I can\'t find an attribute to set the message... In every example I found, the dialog has been statically written i

3条回答
  •  攒了一身酷
    2021-02-05 11:54

    function createDialog(title, text, options) {
        return $("

    " + text + "

    ") .dialog(options); }

提交回复
热议问题