我有一个JS脚本,其中调用了$.ajax
方法,在成功后需要执行某些操作。典型的实现方式如下:
$.ajax({
url: "/Sales/Quotations/LinkQuotabtleItemToSites",
type: "POST",
success: function (data) {
// do something
}
});
The issue is, this js function is developed by another developer and I've dependency on that ajax success call. I was wondering if there is a simple way to subscribe to the success event and handle it in my own js file