This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Description
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?
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.