JS .load()在三元参数网址重写中不起作用?

时间:2018-07-18 11:48:10

标签: javascript php

im建立一个后台办公室,该后台办公室已经具有此功能,可用于单个参数url,例如 example.com/backoffice/page 但在此页面上无法正常工作的链接是这样的: example.com/backoffice/editassembly/2

这是页面的JS代码:

// When the document is ready set up our sortable with it's inherant function(s)
$("#todos").sortable({
    handle: "#handle",
    update: function() {
        var order = $('#todos').sortable('serialize');
        $("#info").load("../scripts/ficheiroassembleia.php?" + order);
    }
});

此代码完全正确,可以在其他页面上使用,但事实是.load不能加载我的脚本,就像无法到达它一样。

当前正在使用的页面模块位于文件夹“ www / backoffice / modules / editassembly /” 内,脚本位于“ www / scripts /”

1 个答案:

答案 0 :(得分:0)

我已经发现问题了,这是由于包含所有重要js文件的include for头文件没有正确加载,路径问题我不得不调用文件本身,因为它是唯一使用该模块的模块一个三重参数。