What is the purpose of ajax setting up cache and global? Ask for advice

will browsers cache if ajax sets cache to false, and will browser caches be solved by adding a timestamp if they don"t know how to cache? What is the purpose of ajax setting the global property?

Mar.24,2021

is set to false without caching, and there is no need to set timestamps. Setting global can be used to control global events of ajax. Default is true.. With these event handlers such as ajaxComplete (), ajaxError (), each ajax will trigger these events. You can register these events and control the callback functions such as successful delivery, request errors, etc., before the ajax is sent.

Menu