In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article "how to achieve display mode pop-up window in Mini Program development" is not understood by most people except programmers. Today, in order to make you better understand "how to achieve display mode pop-up window in Mini Program development", the editor summarizes the following contents. It has a certain reference value, the detailed steps are clear, and the details are handled properly. I hope you can gain something through this article. Now let's take a look at the details.
Display mode pop-up window
OBJECT parameter description:
Parameter type is required to indicate that titleString is the title of the prompt contentString is the content of the prompt showCancelBoolean whether to display the cancel button, default is truecancelTextString no cancel button text, default is "cancel", up to 4 characters cancelColorHexColorNo cancel button text color, default is "# 000000" confirmTextString determines button text, default is "OK", up to 4 characters cancelHexColorNo determine button text color The default is "# 3CC51F" successFunction No API calls successful callback function failFunction No API calls failed callback function completeFunction No API calls the finished callback function (both successful and failed calls will be executed)
Success return parameter description:
Parameter type description when the minimum version confirmBoolean is true, it means that when the user clicks the OK button cancelBoolean is true, the user clicks cancel (for Android systems to distinguish between clicking the mask to close or clicking the cancel button to close) 1.1.0
Sample code:
Wx.showModal ({title: 'prompt', content: 'this is a modal pop-up window', success: function (res) {if (res.confirm) {console.log ('user Click OK')} else if (res.cancel) {console.log ('user Click cancel')}}) what does Mini Program mean? Mini Program is an application that can be used without download or installation. By scanning the QR code or searching it for immediate use, it is easy to operate and easy to spread, and can achieve seven functions such as message notification, offline code scanning, official account association and so on. It is based on Wechat, similar to APP. You can use it whenever you want. After using it, you will leave without taking up memory.
Thank you for your reading. I hope you have a certain understanding of the key issue of "how to achieve display mode pop-up windows in Mini Program development". The specific usage still needs to be understood by everyone through hands-on experiments. Go and try it. If you want to read more articles about relevant knowledge points, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.