Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
<Image className="user-avatar" src={avatar || defaultAvatar} lazyLoad onError={this.loadImageError.bind(this)} ></Image>
Image标签加载图片失败如何在失败回调方法中设置默认图片路径呢? 只能用修改原数据的方式来显示默认图片路径么? 有么有更好的办法,比如像在html中一样这elem.src = img.png这也修改呢!