资 源 简 介
jquery.xslite extends 4 jquery ajax related methods. An application responding with XML containing an xsl-stylesheet processing instruction will have that transformation applied automatically.
ajax(settings) - all jquery.ajax parameters are supported
$.xslite.ajax({ url:"some.xml", method:"GET", success: function (doc,st,jqxhr) {// if "some.xml" a contains an xsl-stylesheet processing instruction, // doc will be the post transformation document, otherwise, it will be "some.xml" } });
load(url [, data][,success [, error]])
url - the url to query
data - any request arguments
a callback routine called if the request is successfull
a callback routine called if the request fails
$("#header").xslite.load("/rq/tour/header");
get(url [, data][,success [, error]])