search

Home  >  Q&A  >  body text

javascript - vue newbie 2.0axios data reference is wrong

It’s an error to report 304 without adding a timestamp. If you add a timestamp, it will be reported as 404. I don’t know what’s wrong. I’ve been struggling for a day and I really can’t. Please help me!

曾经蜡笔没有小新曾经蜡笔没有小新2745 days ago536

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:40:36

    To add a timestamp, do you need to add it after data.json? No., otherwise it will definitely be 404

    '..data.json?'+timestamp

    reply
    0
  • PHPz

    PHPz2017-05-19 10:40:36

    With parameters, add a question mark, which looks like xx.com?key=value&key1=value1

    reply
    0
  • Cancelreply