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处代码是开关作用吗?*/
添加回答
举报
0/150
提交
取消