Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибки JS


prived
 Share

Recommended Posts

Все работало стабильно и вдруг появилась такая лабуда 

 

Uncaught ReferenceError: Invalid left-hand side in assignment
    at HTMLDocument.<anonymous> ((index):481)
    at j (jquery-2.1.1.min.js?ns2v=2.5.6:2)
    at Object.fireWith [as resolveWith] (jquery-2.1.1.min.js?ns2v=2.5.6:2)
    at Function.ready (jquery-2.1.1.min.js?ns2v=2.5.6:2)
    at HTMLDocument.I (jquery-2.1.1.min.js?ns2v=2.5.6:2)

версия 2.3.0.2.3 шаблон NewStore

автор как всегда морозится

Link to comment
Share on other sites


6 минут назад, prived сказал:

может кто помочь? 

Без ссылки на сайт сложно помочь. Пока только так:

Это может быть связано с несоответствием оператора присваивания и оператора сравнения, например, один знак «=» присваивает значение переменной, а операторы «==» или «===» сравнивают значения.

https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/Invalid_assignment_left-hand_side

 

Link to comment
Share on other sites

20 минут назад, prived сказал:

Ошибка связана с файлом showmore.js и он так же не работает

 

showmore.js

нет, ошибка тут:

<script>
$( document ).ready(function() {
	(localStorage.getItem('display') = 'price');
});
</script>

не знаю, что хотели здесь сделать, но мне кажется кто-то хотел наверное поставить заглушку, типа:

localStorage.getItem('display') = 'price'; // без скобок

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.