相关疑难解决方法(0)

Phonegap jQuery ajax请求不起作用

我想开发一个Phonegap应用程序,我正在使用jQuery Mobile.我正在通过PC上的Firefox进行开发和测试,因此这里描述的问题与Phonegap没有任何关系 - 这是一个Firefox PC问题:

以下代码不起作用,我需要一些帮助指出我正确的方向:

var loadWeather = function()
{
    // Request absetzen
    $.ajax(
    {
        // the URL for the request
        url : 'http://www.google.com/ig/api',

        // the data to send (will be converted to a query string)
        data : {
            weather : 'Vienna'
        },

        // whether this is a POST or GET request
        type : 'GET',

        // the type of data we expect back
        dataType : 'xml',

        // code to run if the request succeeds; the response is passed to …
Run Code Online (Sandbox Code Playgroud)

jquery cordova

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

cordova ×1

jquery ×1