Tag Ajax

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…

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…