Let's talk about the business requirements first, when I need to click Add Server, the modal window needs to be reloaded,
In the mechanism of the Bootstrap modal window, the closure is actually hidden, not the real closure, and when you click to load the modal window, it will be displayed, we can see from the network request,
Only the first request for data, and after that, no data is requested.
I went through many websites and found a solution.
Just add such a sentence, which roughly means hiding the event, and then clarifying the data.
Below is the effect, we can see that every time it is reopened, it will be re-requested...
|