小程序使用uni-app搭建小程序环境---弹窗

Posted smile轉角

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了小程序使用uni-app搭建小程序环境---弹窗相关的知识,希望对你有一定的参考价值。

1.消息提示框

uni.showToast({
    title: \'亲,请输入关键字\',
    icon: \'none\',
    duration: 2000//提示的延迟时间,单位毫秒,默认:1500
});

 2.应有结果的错误信息:

报错:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

https://uniapp.dcloud.io/api/ui/prompt?id=showmodal

以上是关于小程序使用uni-app搭建小程序环境---弹窗的主要内容,如果未能解决你的问题,请参考以下文章