web-report-sdk
web-report-sdk copied to clipboard
用`defaultReport`后用jquery发起请求再调用`XMLHttpRequest.abort();`会`Cannot read property 'apply' of null`
在空目录里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对象弄坏的?