Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.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 缺少形式参数_Javascript_Jquery - Fatal编程技术网

Javascript 缺少形式参数

Javascript 缺少形式参数,javascript,jquery,Javascript,Jquery,当有人单击某个按钮时,我试图加载一个页面,但在我的控制台中,它已打印: 缺少正式参数脚本。js:2:6 我正在使用`$(文档)中缺少的功能“。准备好了。当文档准备就绪时,它会调用回调函数,其中包含您的代码 $(document).ready(function(){ //Your code here }); $(document.ready希望得到一个回调函数,不是吗?错误似乎与代码不匹配,但我看不到任何其他明显的错误。 $(document).ready(function(){

当有人单击某个按钮时,我试图加载一个页面,但在我的控制台中,它已打印:

缺少正式参数脚本。js:2:6

我正在使用`$(文档)中缺少的

功能“。准备好了。当文档准备就绪时,它会调用回调函数,其中包含您的代码

$(document).ready(function(){
     //Your code here
});
$(document.ready
希望得到一个回调函数,不是吗?错误似乎与代码不匹配,但我看不到任何其他明显的错误。
$(document).ready(function(){
     //Your code here
});