管理,导致刷新的变量是self中的isBackColor.
3.2http参数传递
按照下面代码传参数应该是没有问题的,但是我遇到了url被编码问题,例如输入`1111@qq.com会被转换为1111%...路由参数
路由传参数主要有两种方式,一种是restful风格的,一种是?...怎么获得input框所选中的文件(为input绑定change事件,然后获取$event,文件就是event.srcElement.files[0])
怎么上传到服务器?...(使用formData对象,调用其append方法添加文件,再使用angular2的http组件post上去)uploadAvatar(file: any): Promise{ let...formData:FormData = new FormData(); formData.append('avatar',file); return this.http.post(Config.url_upload_img