Comments (4)
多个路由对象,我的设计初衷是页面多个区域需要响应地址栏变化,不知道你是不是这种场景?
from yox-router.
你的框架是在这个知乎里面有人提到的:vue.js不支持IE8你们是怎么做的?
我的场景是,一个网站可能有多种布局,每一个布局对应一个路由地址,但每一种布局里面有固定的部分和变化的部分,然后变化的部分用这个地址的子路由实现,子路由也是有一个个地址,访问不同的子路由地址,会自动加载父路由的内容,如果在同父路由的子路由之间导航,父路由的内容不必重新加载。
from yox-router.
子路由是 vue-router 的概念,yox-router 没有借鉴这个。
我设计 yox-router 的理解是,需要响应 url 变化的部分使用 router,不响应的部分,用 router 感觉会很奇怪,比如 github 的 footer,所有页面都是那几个链接,把它从路由中剥离出来不好么?
常见的路由场景是,一个带 tab 的导航栏和一个主区域,这是两个路由实例,在 yox-router 的文档中有详细介绍
from yox-router.
yox-router 现在还没有在任何产品正式使用过,肯定不是一个完美状态,如果有需求,可以讨论,我会尽快改进
from yox-router.
Related Issues (5)
- 切换路由地址的时候报了错 HOT 6
- 请问这个路由兼容到IE几? HOT 3
- 这个库支有像yox一样支持IE8的legacy目录吗 现在在IE8下无法正常运行 HOT 10
- ie8不支持router? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yox-router.