function jsonp(a, b, c) {
var d;
d = document.createElement('script');
d.src = a;
c && (d.charset = c);
d.onload = function() {
this.onload = this.onerror = null;
this.parentNode.removeChild(this);
b && b(!0); //---1
};
d.onerror = function() {
this.onload = this.onerror = null;
this.parentNode.removeChild(this);
b && b(!1); //---2
};
document.head.appendChild(d);
};
/*
这个函数啥用?1,2处代码是开关作用吗?
*/
富国沪深
相关分类