JavaScript error (Uncaught SyntaxError: Unexpected end of input)
问题 I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console I get the follow error: \"Uncaught SyntaxError: Unexpected end of input\". The JavaScript code I am using is: <script> $(function() { $(\"#mewlyDiagnosed\").hover(function() { $(\"#mewlyDiagnosed\").animate({\'height\': \'237px\', \'top\': \"-75px\"}); }, function() { $(\"#mewlyDiagnosed\").animate({\'height\': \'162px\', \'top\': \"0px\"}); }); </script> It says the error is on the last line