Change the asynchronous jQuery Dialog to be synchronous?

前端 未结 7 1380
名媛妹妹
名媛妹妹 2020-12-05 04:12

Currently, I\'m working to replace \"alert\'/\"confirm\" with the jquery dialog.

But most of legacy codes is written in some asynchronous way, which make it

7条回答
  •  萌比男神i
    2020-12-05 05:01

    You can use a real modal dialog.

    [dialog] is an element for a popup box in a web page, including a modal option which will make the rest of the page inert during use. This could be useful to block a user's interaction until they give you a response, or to confirm an action.

    https://github.com/GoogleChrome/dialog-polyfill

提交回复
热议问题