There is a save draft box function in the requirement, which prompts you to save when the page is refreshed or closed.

how should I add this hint?
using the window.onbeforeunload = function () {} method is just a system prompt, and the prompt you want to add cannot display
do you have any good solutions?

Mar.16,2021

the general solution is to save it regularly, such as ueditor saving the content to localstorage every 10 seconds.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e5e7-2c415.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e5e7-2c415.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?