50

手把手带你撸一个路由(1)--界面跳转

 5 years ago
source link: https://juejin.im/post/5b310f8951882574830d0962
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
路由存在的意义 模块间解耦,不需要再类中明确跳转目标的类名 动态配置,业务需求原因,部分诸如banner页等地方的地址需要动态可配的,这个时候就不方便写死类名,路由是一个比较好的解决方式。 前言 本文会讲解一下如何编写一个简单的路由。在讲解路由之前,需要

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK