Ошибка netbeans ожидала операнда, но нашлаJquery

Программирование на jquery
Anonymous
Ошибка netbeans ожидала операнда, но нашла

Сообщение Anonymous »


Beginner to java trying to implement jquery into netbeans by inputting these codes into a javascript file to create a main-menu page. Utilizing jquery v 3.1.1. They highlight my second script tag saying its an error

var main = function () { $('.icon-menu').click(function () { $('.menu').animate({ left: "0px" }, 200); $('body').animate({ left: "285px" }, 200); }); $('.icon-close').click(function () { $('.menu').animate({ left: "-285px" }, 200); $('body').animate({ left: "0px" }, 200); }); }; $(document).ready(main);/* They highlight my as an error and give the message

Menu.js:2:8 Expected an operand but found <


Источник: https://stackoverflow.com/questions/420 ... -but-found

Вернуться в «Jquery»