Home  >  Q&A  >  body text

javascript - Why are ajax requests sometimes correct and sometimes incorrect?


I’m really confused, sometimes wrong and sometimes right. Am I confused?
Is it a problem with webpack?

给我你的怀抱给我你的怀抱2663 days ago749

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-07-05 11:01:44

    Maybe it has reference value https://fukun.org/archives/01...

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-07-05 11:01:44

    This request address is wrong, right? Is it requesting Douban? Set up proxy. If you are using vue-cli, index.js in the config folder

    proxyTable: {
          '/v2': {
            target: 'https://api.douban.com/v2',
            changeOrigin: true
          }
        }

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 11:01:44

    Do you use Douban to have permissions for some interfaces

    reply
    0
  • Cancelreply