통신 XMLHttpRequest.timeout

황제낙엽 2018.11.03 14:36 조회 수 : 488

sitelink1 https://developer.mozilla.org/en-US/docs...st/timeout 
sitelink2  
sitelink3  
sitelink4  
extra_vars4  
extra_vars5  
extra_vars6  

 

The XMLHttpRequest.timeout property is an unsigned long representing the number of milliseconds a request can take before automatically being terminated. The default value is 0, which means there is no timeout. Timeout shouldn't be used for synchronous XMLHttpRequests requests used in a document environment or it will throw an InvalidAccessError exception. When a timeout happens, a timeout event is fired.

Note: You may not use a timeout for synchronous requests with an owning window.
Using a timeout with an asynchronous request 

In Internet Explorer, the timeout property may be set only after calling the open() method and before calling the send() method.