Encapsulate your own Ajax function
1. The effect to be achieved 2. Define options parameter options The myAjax() function is our custom Ajax function, it receives a configuration object as a parameter, and the following properties can be configured in the configuration object. method request…