### bug description you will get an cross-domain error when using $.ajax({type: 'script'}) to get script, 'cause the code always create a XHR object to send requests. ### how to reproduce? ``` javascript af.ajax({ url: 'https://ehr.alibaba-inc.com/assets/masterdata/employee/lib/lodash.min.js', dataType: 'script', success: function() { console.log('loaded'); } }) ``` ### how to fix? create a script tag to load script.
bug description
you will get an cross-domain error when using $.ajax({type: 'script'}) to get script, 'cause the code always create a XHR object to send requests.
how to reproduce?
how to fix?
create a script tag to load script.