newHolmes 2017-07-11 02:29 采纳率: 0%
浏览 807

$.getJSON吗是没有执行吗?

changeItemParam : function(node,formId){
$.getJSON("item/param/query/itemcatid/" + node.id,function(data)

        根据视频做的一个javaWeb项目,回显一个页面,我把 $.getJSON的url改成如上内容,但是f12看到的请求是localhost:8080/item/param/item/cid/560的形式,我用search方法也没有搜到关于item/param/item/cid的内容啊,这是什么情况?是maven工程的问题吗?
  • 写回答

1条回答 默认 最新

  • 大势下的牛马 2017-07-11 02:55
    关注

    你getjson中的url:item/param/query/itemcatid/+id
    而你f12中的url:item/param/item/cid/560

    明显不相同
    你可以在浏览器中debug一下看看怎么得到第二个url的
    http://blogxinxiucan.sh1.newtouch.com/

    评论

报告相同问题?