Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.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
Php jquery自动完成源文件错误_Php_Jquery - Fatal编程技术网

Php jquery自动完成源文件错误

Php jquery自动完成源文件错误,php,jquery,Php,Jquery,怎么了?我制作了源php文件。当我测试时,只需打开所有列表即可。但不是工作。我写的例子 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>autocomplete demo</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/s

怎么了?我制作了源php文件。当我测试时,只需打开所有列表即可。但不是工作。我写的例子

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>autocomplete demo</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
</head>
<body>

<label for="autocomplete">Select a programming language: </label>
<input id="autocomplete">

<script>
$( "#autocomplete" ).autocomplete({
  source: "text.php"

});
</script>

</body>
</html>

可能的重复只是不工作。未选择。刚刚打开的列表
[ "Apple",
"Banana",
"Mango",
"Lemon",
"Öküz helvası"
]