优化

xiaoxiao2021-02-28  87

1、在终止ajax请求之后,还应该对XHR对象进行解引用操作。由于内存原因,不建议重用XHR对象。

xhr.abort(); xhr = null;
转载请注明原文地址: https://www.6miu.com/read-69305.html

最新回复(0)