Encapsulate Ajax functions
1. The effect to be achieved 2. Define options parameter options The itheima() function is our custom Ajax function. It receives a configuration object as a parameter. The following attributes can be configured in the configuration object. method request type…