web-report-sdk icon indicating copy to clipboard operation
web-report-sdk copied to clipboard

用`defaultReport`后用jquery发起请求再调用`XMLHttpRequest.abort();`会`Cannot read property 'apply' of null`

Open panlina opened this issue 6 years ago • 0 comments

在空目录里npm i jquery web-report然后创建以下页面:

<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/web-report/defaultReport.js"></script>
<script>
Performance({
	domain: '/',
});
var request = $.ajax("/");
request.abort();
</script>

就会

defaultReport.js:1 Uncaught TypeError: Cannot read property 'apply' of null

好像是patch XMLHttpRequest对象弄坏的?

panlina avatar Jun 25 '19 10:06 panlina