我正在尝试将Jsonp.get配置为在Angular 2中使用自定义 JSONP_CALLBACK 方法。 当我做这样的事情时:
this.jsonp.get(`${url}?callback=content`)
.map(this.checkForError)
.catch(err => Observable.throw(err))
.map(this.getJson);
我收到错误:
file.json?callback=content:1 Uncaught ReferenceError: content is not defined
由于