Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.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 - Fatal编程技术网

Javascript 什么';是否导致“未捕获的语法错误:意外标识符”?

Javascript 什么';是否导致“未捕获的语法错误:意外标识符”?,javascript,Javascript,在下面的代码中,是什么导致未捕获的语法错误:意外标识符? 当我在单独的行上移动LeakMemory和function时,Uncaught SyntaxError:Unexpected identifier开始出现在具有function <html> <head> <script type="text/javascript">     function         Lea

在下面的代码中,是什么导致
未捕获的语法错误:意外标识符
? 当我在单独的行上移动
LeakMemory
function
时,
Uncaught SyntaxError:Unexpected identifier
开始出现在具有
function

<html>
        <head>
            <script type="text/javascript">
                function
                    LeakMemory
                    ()
                    {
                        
                    }
            </script>
        </head>
        <body>
            <input type="button" value="Memory Leaking Insert" onclick="LeakMemory()" />
        </body>
    </html>

作用
漏存储器
        ()
        {
        
        }

复制和粘贴代码时,可能有一些奇怪的隐藏字符被堆栈溢出剥离了?因为复制粘贴代码对我很有效。

没有任何问题。请看:这里也是一样,当我从
将代码复制回
netbeans
时,它成功了。