I have some JavaScript code that works in FireFox but not in Chrome or IE.
(我有一些JavaScript代码可在FireFox中使用,但不能在Chrome或IE中使用。)
In the Chrome JS Console I get the follow error:
(在Chrome JS控制台中,出现以下错误:)
"Uncaught SyntaxError: Unexpected end of input".
(“未捕获的SyntaxError:输入意外结束”。)
The JavaScript code I am using is:
(我正在使用的JavaScript代码是:)
<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 which is });
(它说错误在最后一行是});
)
ask by translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…