先来查看index.wxml 文件

    1. <view bindtap="toast">弹出弹窗</view>
    1. 在来看 index.js 文件
       //弹窗
        toast(){
          wx.showToast({
            title: '获取信息成果',
            icon:'/static/tiger.jpg'
          })
        },
    
    效果图:<br />![image.png](https://cdn.nlark.com/yuque/0/2022/png/26240361/1646123970673-09beb28b-c254-4da3-845a-2c0e96ce0253.png#clientId=u5f247e53-566c-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=157&id=u6a371037&margin=%5Bobject%20Object%5D&name=image.png&originHeight=314&originWidth=366&originalType=binary&ratio=1&rotation=0&showTitle=false&size=7071&status=done&style=none&taskId=ue245ee3b-004d-48eb-bab0-06ca5a62659&title=&width=183)