Code optimization JQ?

Good time of day. I want criticism and advice from professionals, such a thing for sending forms, written, correctly?
$.Admin.postQuery = {
 urlSend: "", 
 dataSend: "", 
 activate: function() {
 var $_self = this;
 requestSent = false; 

 $('body').on('submit', 'form[data-ajax]', function(e) {
e.preventDefault();
 $_self.urlSend = $(this).attr('action');
 $_self.dataSend = $(this).serialize();
 if(!requestSent) {
$_self.sendAjax();
}
});
},
 sendAjax: function(){
 requestSent = true; 
$.ajax({
 type: "POST",
 url: this.urlSend,
 cache: false,
 data: this.dataSend,
 success: function(data){

},
 complete: function() {
 requestSent = false;
}
});
}
}
June 14th 19 at 21:05
1 answer
June 14th 19 at 21:07
if it works, then, right
if does not work, wrong
Brilliant answer! The Nobel prize in the Studio! - Lavada_Schmeler4 commented on June 14th 19 at 21:10
and you really think that there are some unknown secrets?
admit that you are not able to work and come here for free, and everything will fall into place - Pedro65 commented on June 14th 19 at 21:13
all right says. So you are only wasting your and other people's time. - Jefferey.Carroll commented on June 14th 19 at 21:16
I wrote to the Russian language, code optimization! If you are not familiar with this concept, I sympathize with you. - Lavada_Schmeler4 commented on June 14th 19 at 21:19
so themselves and optimize
to do this, however, you need to know the language in which you work, and even better to imagine what you're doing
but why would you? there is a toaster with free the slaves, they'll all optimizirovat

and learn not to be rude to those from whom you hysterically need help - Pedro65 commented on June 14th 19 at 21:22
WHAT ELSE CODE? O_O
There's nothing to see!
You gave a short and clear answer, and you being sarcastic.
You have even problems yet, no no and you already asked a question. WHY???
Spend your time on something useful, not toil with a nonsense.

When you are 30 more lines to write, will come with a new question? O. O
In any case, good for you. - Jefferey.Carroll commented on June 14th 19 at 21:25

Find more questions by tags AJAXJavaScriptjQuery