uniapp open-type
时间: 2023-10-03 07:09:51 浏览: 35
The open-type attribute in Uniapp is used to specify the type of open behavior for a link or button. There are several types of open behavior that can be set using the open-type attribute, including:
1. navigate: This type of open behavior is used to navigate to a new page in the app. The target page is specified using the url attribute.
2. redirect: This type of open behavior is used to replace the current page with a new page. The target page is specified using the url attribute.
3. switchTab: This type of open behavior is used to switch to a tab in a tab bar. The target tab is specified using the url attribute.
4. reLaunch: This type of open behavior is used to close all existing pages and open a new page. The target page is specified using the url attribute.
5. navigateBack: This type of open behavior is used to navigate back to the previous page in the app.
6. exit: This type of open behavior is used to exit the app.
The open-type attribute is commonly used in conjunction with the button or a tag in Uniapp to provide clickable links and actions within the app.
相关推荐
![vue](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)