javascript - vue newbie 2.0axios data reference is wrong
曾经蜡笔没有小新2017-05-19 10:38:36
0
2
539
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!
To add a timestamp, do you need to add it after data.json? No., otherwise it will definitely be 404
'..data.json?'+timestamp
With parameters, add a question mark, which looks like
xx.com?key=value&key1=value1