Coder Social home page Coder Social logo

Comments (4)

musicode avatar musicode commented on June 25, 2024

多个路由对象,我的设计初衷是页面多个区域需要响应地址栏变化,不知道你是不是这种场景?

from yox-router.

hrbzcj avatar hrbzcj commented on June 25, 2024

你的框架是在这个知乎里面有人提到的:vue.js不支持IE8你们是怎么做的?
我的场景是,一个网站可能有多种布局,每一个布局对应一个路由地址,但每一种布局里面有固定的部分和变化的部分,然后变化的部分用这个地址的子路由实现,子路由也是有一个个地址,访问不同的子路由地址,会自动加载父路由的内容,如果在同父路由的子路由之间导航,父路由的内容不必重新加载。

from yox-router.

musicode avatar musicode commented on June 25, 2024

子路由是 vue-router 的概念,yox-router 没有借鉴这个。

我设计 yox-router 的理解是,需要响应 url 变化的部分使用 router,不响应的部分,用 router 感觉会很奇怪,比如 github 的 footer,所有页面都是那几个链接,把它从路由中剥离出来不好么?

常见的路由场景是,一个带 tab 的导航栏和一个主区域,这是两个路由实例,在 yox-router 的文档中有详细介绍

from yox-router.

musicode avatar musicode commented on June 25, 2024

yox-router 现在还没有在任何产品正式使用过,肯定不是一个完美状态,如果有需求,可以讨论,我会尽快改进

from yox-router.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.