<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                >[success] # 小程序彈窗 1. `wx.showToast` ,效果如圖當然也可以定義其他icon 圖標 ![](https://img.kancloud.cn/0b/2a/0b2aa075960c9471d728db4557664e4e_270x263.png) 2. `wx.showModal` 產生確認取消確認彈窗 ![](https://img.kancloud.cn/dc/32/dc32dd8a8e86779f748e55510d180989_438x320.png) 3. `wx.showActionSheet`,底部彈出選項彈窗 ![](https://img.kancloud.cn/5a/85/5a8592ef1e55e13cd3eb2d60caaec59f_464x315.png) >[danger] ##### 案例 ~~~html <!-- 1.展示彈窗 --> <view> <button size="mini" bindtap="onShowToast">showToast</button> <button size="mini" bindtap="onShowModal">showModal</button> <button size="mini" bindtap="onShowAction">showAction</button> </view> ~~~ ~~~ // pages/apidemo/inde.js Page({ /** * 頁面的初始數據 */ data: { }, // 1.彈窗相關的API onShowToast() { wx.showToast({ title: '購買失敗!', icon: "loading", duration: 5000, mask: true, // 是否顯示透明蒙層,防止觸摸穿透 success: (res) => { console.log("res:", res); }, fail: (err) => { console.log("err:", err); } }) // wx.showLoading({ // title: "加載中ing" // }) }, onShowModal() { wx.showModal({ title: "確定購買嗎?", content: "確定購買的話, 請確定您的微信有錢!", confirmColor: "#f00", cancelColor: "#0f0", success: (res) => { if (res.cancel) { console.log("用戶點擊取消"); } else if (res.confirm) { console.log("用戶點擊了確定"); } } }) }, onShowAction() { wx.showActionSheet({ itemList: ["衣服", "褲子", "鞋子"], success: (res) => { console.log(res.tapIndex); }, fail: (err) => { console.log("err:", err); } }) }, }) ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看