jQuery 1.0.4 New Wave Javascript(js源文件)

2020-05-19 07:32:46易采站长站整理

        }
        // Delegate
        jQuery.ajax({
            url: url,
            data: data,
            success: callback,
            dataType: type,
            ifModified: ifModified
        });
    },
    getIfModified: function( url, data, callback, type ) {
        jQuery.get(url, data, callback, type, 1);
    },
    getScript: function( url, callback ) {
        if(callback)
            jQuery.get(url, null, callback, “script”);
        else {
            jQuery.get(url, null, null, “script”);
        }
    },
    getJSON: function( url, data, callback ) {
        jQuery.get(url, data, callback, “json”);
    },
    post: function( url, data, callback, type ) {
        // Delegate
        jQuery.ajax({
            type: “POST”,
            url: url,
            data: data,
            success: callback,
            dataType: type
        });
    },
    // timeout (ms)
    timeout: 0,
    ajaxTimeout: function(timeout) {
        jQuery.timeout = timeout;
    },
    // Last-Modified header cache for next request
    lastModified: {},