小程序需求:如果请求图片 404 则不显示这个 view 层,该怎么实现?

这是遍历出来的段子,一个view层里有文字和图片,如果图片404时则不让这个层显示出来
file

<view wx:for="{{pindao.data}}" class='items'>
            <view wx:if="{{item.text !== null}}" class='title'>{{item.text}}</view>
            <view wx:if="{{item.image !== null}}" class=''><image binderror='imgerror' bindtap='previewImage' mode='aspectFill' data-src="{{item.image}}" src="{{item.image}}"></image></view>
            <view wx:if="{{item.gif !== null}}" class=''><image binderror="imgerror" src="{{item.gif}}"></image></view></view>
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!