mootools
에 내장 된 기능이 필요한 문제와 해결 방법이 있습니다. 그래서 나는 그것을 해부하기 시작했다. shim
기능이있는 내가 이해하지 못할 지금의이mootools 해부
destroy: function(){
if (this.shim) this.shim.destroy();
return this;
}
같은 IframeShim.destroy
의에 관심있는 오전이 무엇인지. 는 Paricularly 내가 이해하려고 노력하고 있어요 지금이 전화를 clear
그 코드 내가 할 수있는이 클리어 기능에 지금이
clear: function(){
this.running = false;
if (this.script){
this.script.destroy();
this.script = null;
}
return this;
}
같다 취소의 코드는 다음과
cancel: function(){
if (this.running) this.clear().fireEvent('cancel');
return this;
}
처럼 Request.JSONP.cancel
입니다 destroy()
을보고 어느 날 shim
(맨 위의 코드 참조)이 걸리고 im이 붙어 있습니다. 이 모든 기능은 mootools-more.js
도움말에 있습니다. 누군가가 그것이 JQuery
대안이 있습니까 Request.JSONP.cancel
의 자바 스크립트 구현 평범한를 제공 할 수 있다면 좋을 것
?
감사합니다. 노드에서'destroy()'를 호출하면 노드가 만든 모든 http 요청이 취소됩니다. 무엇을 의미하는지 이해하지 못합니다. [this] (http://stackoverflow.com/questions/6865574/how-to-cancel) -http-request-using-javascript) – lovesh
그것은'Request.JSONP.cancel'가 HTTP 요청을 취소 할 수 없다는 것을 의미합니까? – lovesh
@lovesh 아니요 HTTP 요청을 취소하지 않습니다. 스크립트가로드되면 콜백을 취소합니다. –