小编Bou*_*zza的帖子

sublime text 3包控制安装

我有一个问题,当我安装sublime文本3的包控件因为代理集但我需要安装一个插件所以任何人都可以帮助我吗?当我在控制台中执行getproxy时它返回我{}当我尝试在控制台中使用python设置代理时

urllib.set_proxy(' http:// user:password @ server:port ','http')

我用他们的值替换了用户,密码,服务器和端口,但它返回了我

raceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'set_proxy'
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能使它有效?我需要安装一个插件

sublimetext3 package-control sublime-text-plugin

3
推荐指数
2
解决办法
9906
查看次数

原始异常:TypeError:不是函数

我需要将一个Web服务调用到一个服务文件中,以便在我的预先输入组件中使用它,但它在我的控制台中返回此问题消息

这是我的服务文件

export class DslamService {
private host = window.location.host;

constructor(private http: Http) {}

getDslams() : Observable<Site[]>  {
    return this.http.get('http://' + this.host + '/dslam_service.php')
            .map(this.extractData)
            .catch(this.handleError);
}


private extractData(res: Response) {
    let body = res.json();
    return body.data || { };
  }

  private handleError (error: any) {
    // In a real world app, we might use a remote logging infrastructure
    // We'd also dig deeper into the error to get a better message
    let errMsg = (error.message) ? error.message :
      error.status …
Run Code Online (Sandbox Code Playgroud)

angular

2
推荐指数
1
解决办法
8507
查看次数