weixin_33724059 2012-03-20 14:20 采纳率: 0%
浏览 24

jQuery和JSON没有结果

I've made a test fiddle here: http://jsfiddle.net/BjLdQ/2

Where I can enter the number 1 for each HTML field and then I press the login button and I get the JSON back as:

{"code":"2"}

So in my mind, I should be able to do the same with jQuery so I press the (Login Jquery Ajax) text and nothing happens, in jsfiddle or from my local machine?

Any help would be most appreciated.

  • 写回答

2条回答 默认 最新

  • helloxielan 2012-03-20 14:25
    关注

    Same Origin Policy... You cannot fetch pages from a different origin (MDN).

    See Ways to circumvent the same-origin policy for work-arounds.

    评论

报告相同问题?