JSON crossdomain communication with PHP file and a local javascript file

前端 未结 7 735
孤街浪徒
孤街浪徒 2020-12-21 15:47

I am a JSON newbie, but have good experience in PHP and javascript. The question is simple, and the answer might be simpler. I am having trouble sending data from the PHP fi

7条回答
  •  心在旅途
    2020-12-21 16:31

    Its called the Same Origin Policy. In short: the domain that your code is on, is the only domain your javascript can communicate with (by default)

    JQuery won't get json?

提交回复
热议问题