weixin_33737774 2016-06-07 10:46 采纳率: 0%
浏览 25

JQuery.load甚至没有运行

I'm not entirely sure why it isn't working, but I have a JQuery.load with the below code:

var modcode = $(this).attr('data-modcode');
var link = $(this).attr('href');
$('#subUnitWrapper').append('<div id="h' + modcode + '"></div>');
$('#h' + modcode).load(link + ' #divMiddle h4', function(data){
    debugger;
    $('#h' + modcode).append(data);
});

I've run it through a debugger statement, and it's getting the link fine, same goes for the element append. But when I put a debugger statement inside the load function, it didn't even hit it. The link is relative, but I don't see how that could affect it.

  • 写回答

0条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥30 医疗资料ROI mask转YOLO的bounding box
      • ¥15 docx4j word转pdf
      • ¥15 MATLAB-GUI数据图表
      • ¥15 Qt Vs2017使用Charts异常
      • ¥15 将位图选入内存DC失败,但没有出错信息
      • ¥20 如何从 .html url 启动/激活 .py 文件(sql debug)
      • ¥15 c#调用soap出错,soapui中可以
      • ¥100 CBIS-DDSM kaggle 资料处理
      • ¥30 python 在 excel 用 OpenPyXL 怎么实现以下代码
      • ¥15 pywinauto 无法捕获到元素