Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/366.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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 试图让这个程序在下面工作,但当我使用.lenght时总是无法定义 var numberOfDrumButtons=document.querySelectorAllbutton; forvar i=0;基本上你有一个拼写错误:lenght应该是length_Javascript_Html_Arrays_Button_Selectors Api - Fatal编程技术网

Javascript 试图让这个程序在下面工作,但当我使用.lenght时总是无法定义 var numberOfDrumButtons=document.querySelectorAllbutton; forvar i=0;基本上你有一个拼写错误:lenght应该是length

Javascript 试图让这个程序在下面工作,但当我使用.lenght时总是无法定义 var numberOfDrumButtons=document.querySelectorAllbutton; forvar i=0;基本上你有一个拼写错误:lenght应该是length,javascript,html,arrays,button,selectors-api,Javascript,Html,Arrays,Button,Selectors Api,var numberOfDrumButtons=document.querySelectorAllbutton; 对于var i=0;i

var numberOfDrumButtons=document.querySelectorAllbutton; 对于var i=0;i在你的问题中我三次看到这一点之前,我一直认为长度是一个拼写错误。这是长度而不是长度。不要因为拼写错误而发布答案。留下评论,然后标记要关闭的问题。因为有一个由打字错误引起的问题的特定标志。