html中的<img>的src属性取一张图片,取不到就默认

<img id="loginImg" src="/Index/1234.png" style="border-radius: 50%;" onerror="this.src='/Index/images/123.png'">

posted @ 2017-06-28 09:58  杜子烟  阅读(231)  评论(0编辑  收藏  举报