当前位置:网站首页>The third training of Hongmeng

The third training of Hongmeng

2022-06-22 21:46:00 Makr Xiaoqing

Jump of route :router.push(OBJECT), Jump to the specified page in the application .
router.replace(OBJECT), Replace the current page with a page in the application , And destroy the replaced page .
router.back(OBJECT), Return to the previous page or the specified page .
router.clear(), Clear all history pages in the page stack , Only keep the current page as the top page of the stack .
router.getLength(), Get the number of pages currently in the page stack .
router.getState(), Get the status information of the current page .

swipe Components ​​​​​​​

Directory structure

 app.js File is global JavaScript Logic and entire application lifecycle management .
pages The directory is used to store all component pages .
common The directory is used to store public resource files
i18n The directory is used to configure the resource contents of different language scenarios

原网站

版权声明
本文为[Makr Xiaoqing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206222003124099.html

随机推荐