0
在jQuery.getScript中調用eval之前是否有鉤子執行代碼?如何在使用jQuery.getScript進行eval之前執行代碼
在jQuery.getScript中調用eval之前是否有鉤子執行代碼?如何在使用jQuery.getScript進行eval之前執行代碼
從$.getScript()
的docs:
這是一個簡寫的Ajax功能,這相當於:
$.ajax({
url: url,
dataType: "script",
beforeSend: function (xhr) {
// code to execute before query
}
});
的問題是我需要後執行接收和eval之前。 – Coyote