uni.showModal 不关闭
时间: 2023-10-14 19:04:32 浏览: 215
通过查阅引用、引用和引用的内容,得知uni.showModal是一个用来显示模态弹窗的API。它可以显示一个带有标题和内容的弹窗,并且可以配置确定和取消按钮的文字和颜色。当点击确定按钮时,可以执行相应的操作;当点击取消按钮时,也可以执行相应的操作。根据引用的描述,如果在配置确定和取消按钮的文字时出现问题,可能会导致uni.showModal不关闭。因此,解决该问题的方法是删除自己配置的确定和取消按钮文字。这样,uni.showModal就能正常关闭弹窗了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [uni.showModal不好使](https://blog.csdn.net/thingir/article/details/123813954)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [uni-app点击按钮弹出提示框-uni.showModal(OBJECT),选择确定和取消](https://blog.csdn.net/weixin_44763569/article/details/118488101)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文