简体   繁体   中英

Uncaught SyntaxError: Unexpected token )

im getting this weird message its really awful. Here you can see a fiddle,

http://jsfiddle.net/xHL35/8/

Or you can paste the next code into an html ,

if is it a syntax mistake why it dosent tell me the line where the error is??

Also every time i clic next (When the overlay is open) the error comes again so after 5 clics, i have 5 errors on console.

Thanks

 <div id="navpics"><a href="javascript:();" class="prevImg">NEXT</a><div id="imageCounter"></div><a href="javascript:();" class="nextImg">PREV</a></div>
<a href="javascript:();" class="nextImg">NEXT</a>

It does not like the ();

If you insist on using the anchor like that use void(0)

<a href="javascript:void(0);" class="nextImg">NEXT</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM