【问题标题】:Widget Windows - consume Web Service REST with JSON response窗口小部件 - 使用带有 JSON 响应的 Web 服务 REST
【发布时间】:2013-08-21 06:22:04
【问题描述】:

我实现了一个小工具窗口,我可以调用一个 REST Web 服务。我在 google 和 stackoverflow 中搜索了许多主题,但我没有为我的问题的解决方案提供资金。

我想使用 ajax 调用,但它不起作用,“$”没有定义。

我的代码:

function callWebService(){
$.ajax({
    type:"GET",
    url:"url",
    data:'arguments',
    dataType:"json",
    success : function(msg){
        loadJSON(msg);
    },
    error: function(msg){
        alert("Error : " + msg);
    }
});
}

提前谢谢你

【问题讨论】:

    标签: javascript web-services web windows-desktop-gadgets


    【解决方案1】:

    $ 未定义,因为该客户端中不存在 jquery。

    【讨论】:

    • 谢谢,我已经检查过了,jQuerry 版本是缩小版。有了jQuerry的完整版,我就没有问题了。
    猜你喜欢
    • 2016-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-03
    • 2014-08-02
    • 1970-01-01
    相关资源
    最近更新 更多