getpage.js 469 B

12345678910111213141516
  1. (function () {
  2. var page = {
  3. init: function ($page) {
  4. $page.find('#getpage1').on('tap', function () {
  5. var prepage = learun.nav.getpage('demo');
  6. if (prepage) {
  7. console.log(prepage);
  8. learun.layer.toast('获取成功');
  9. } else {
  10. learun.layer.toast('获取失败');
  11. }
  12. });
  13. }
  14. };
  15. return page;
  16. })();