Difference Between .dialog(“close”) and .dialog(“destroy”)

后端 未结 3 799
醉酒成梦
醉酒成梦 2021-02-12 14:28

What is the difference between .dialog(\"close\") and .dialog(\"destroy\") in jquery-ui?

I have a script where the previous developer had used

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-12 15:28

    From Docs:

    destroy:

    Removes the dialog functionality completely. This will return the element back to its pre-init state.

    close:

    Closes the dialog, which can re-opened when needed.

提交回复
热议问题