Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/236.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript js get file other目录中的方法$.get()_Javascript_Php - Fatal编程技术网

Javascript js get file other目录中的方法$.get()

Javascript js get file other目录中的方法$.get(),javascript,php,Javascript,Php,每个目录示例中有两个目录和文件php: admin/file.php admin/directory2/need\u从\u directory1\u file.php获取\u数据 $.get\'../file.php?id=\'+$this.val 如何从directory1/file.php获取id 我认为这条路不对。如何运行它 非常感谢。路径应该是$.get\'../directory1/file.php?id=\'+$this.val这个问题的措辞真的很笨拙,但我认为除了问题中不必要的反斜

每个目录示例中有两个目录和文件php:

admin/file.php admin/directory2/need\u从\u directory1\u file.php获取\u数据 $.get\'../file.php?id=\'+$this.val

如何从directory1/file.php获取id

我认为这条路不对。如何运行它


非常感谢。

路径应该是$.get\'../directory1/file.php?id=\'+$this.val

这个问题的措辞真的很笨拙,但我认为除了问题中不必要的反斜杠之外,可能还有更多OP没有显示出来,这是对的。可能需要更好的解释,尽管事实上,任何解释都可以。教鱼而不是给鱼。不过,在问题弄清楚之前,还是不要给出答案。