callback(
success)函数在响应到达时运行,并且不在
loadWithoutCache方法范围内运行,因为该函数已经结束。
您可以
context在
ajax调用中使用属性来设置回调函数的上下文:
$.fn.loadWithoutCache = function (){ $.ajax({ url: arguments[0], cache: false, dataType: "html", context: this, success: function(data) { $(this).html(data); } });}


