jQuery.ajax() – jQuery API

jQuery.ajax() – jQuery API

headers(added 1.5)Map
Default: {}

A map of additional header key/value pairs to send along with the request. This setting is set before the beforeSend function is called; therefore, any values in the headers setting can be overwritten from within the beforeSend function.

ifModifiedBoolean
Default: false

Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data.

原文地址:https://www.cnblogs.com/lexus/p/2489567.html