Coder Social home page Coder Social logo

ie8不支持router? about yox-router HOT 8 CLOSED

lilihaoo avatar lilihaoo commented on July 24, 2024
ie8不支持router?

from yox-router.

Comments (8)

musicode avatar musicode commented on July 24, 2024

应该是支持的,晚点我看下再回复你

from yox-router.

musicode avatar musicode commented on July 24, 2024

image
我测试没问题,应该是你使用有问题

from yox-router.

lilihaoo avatar lilihaoo commented on July 24, 2024

可以问下你是在哪个系统版本下验证的,ie8的浏览器还是模拟的版本;我这边用了这个案例,ie11模拟ie8还是不行;xp上的ie8也不行

from yox-router.

musicode avatar musicode commented on July 24, 2024

win7 下的原生 ie8,你试下 example/start.html

from yox-router.

lilihaoo avatar lilihaoo commented on July 24, 2024

找到问题了
image
这边代码编译器默认开启的保存自动格式化,使用的prettier插件,对象或数组的结尾默认加了个逗号,这个逗号导致了yox-router以为还有的route而报的错,routes数组最后一个对象的逗号删掉ie8就可以访问了;一个逗号折磨我两天

from yox-router.

musicode avatar musicode commented on July 24, 2024

哈哈,是的,这个问题我也碰到过

from yox-router.

lilihaoo avatar lilihaoo commented on July 24, 2024

image

from yox-router.

musicode avatar musicode commented on July 24, 2024

低版本ie是这样的行为,没毛病

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.