uniapp open-type
时间: 2023-10-03 10:09:51 浏览: 79
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.
阅读全文