PhoneGap ajax call fails everytime

后端 未结 6 2000
臣服心动
臣服心动 2021-01-15 12:27

I am developing a mobile application using PhoneGap, and I have to access some services from another project. I am using jquery-2.0

6条回答
  •  情书的邮戳
    2021-01-15 13:16

    I solved the problem with the "GET" call, but now I am trying to make a "PUT" call and it's the same problem, always fails.

    $.ajax({
       url: '/echo/html/',
       type: 'PUT',
       data: "email=a@b.com",
        success: function(data) {
             alert('Success.');
        }
     });
    

提交回复
热议问题