Implementing an intelligent prompt function requires a lot of knowledge in JavaScript, ajax, database, and jsp/php.
If the amount of data is large and special optimization is needed, it is not appropriate to spend too much effort on a small function.