Article From:https://segmentfault.com/q/1010000014138372
Question:

RT。
Ask, if you want to use 3 different dialog in one page, you have to create 3 dialog tags in the page. The user may not display any of the dialog, so the pre – set dialog is wasted.
Ask, how do you deal with the actual project?
No effective answers were found on the Internet.

Answer 0:

1.What is a waste? You can add V-IF instructions to dialog to control whether to draw dialog
2.You can also write only one dialog, and the content in the dialog will judge which is based on the logic, but the logic will be more complex.

Leave a Reply

Your email address will not be published. Required fields are marked *