After you click the update button, the page is automatically refreshed. Then, the "Personal Data modified successfully" prompt appears at the top of the page, the source code is That ajax submits a post to apisetting, judges that the update is successful Based on the returned json, and then uses window. location. reload () refresh the page...
First look at the figure
After you click the update button, the page is automatically refreshed, and the "Personal Data modified successfully" prompt appears at the top of the page. The source code is That ajax submits a post/Api/settingThe update is successful Based on the returned json, and thenWindow. location. reload ()Refresh the page.
The problem is, how does one determine that I submitted the update before a refresh action?
Reply content:
First look at the figure
After you click the update button, the page is automatically refreshed, and the "Personal Data modified successfully" prompt appears at the top of the page. The source code is That ajax submits a post/Api/settingThe update is successful Based on the returned json, and thenWindow. location. reload ()Refresh the page.
The problem is, how does one determine that I submitted the update before a refresh action?
Store the prompt information in the session. The prompt message on the top is actually always present, but the content is displayed (commonly known as flash memory information)
Laravel4 http://v4.golaravel.com/docs/4.1/requests#old-input
Phalcon http://docs.phalconphp.com/zh/latest/reference/flash.html