Если для тебя важнее то, что между строк, убери строки. Сравнение строк в JavaScript if(“text string”==”text string”) не вернёт true, т.к. на самом деле сравниваются не строки, а адреса этих строк в памяти. Для сравнения строки можно обернуть так: new String(“text string”).valueOf(). if(new String(“text string”).valueOf() == new String(“text string”).valueOf()){ console.log(‘eq’); }
Archive for the ‘JavaScript’ Category
0
1
https://inc1.net/category/javascript/
image
https://inc1.net/wp-content/themes/vanguarda/
https://inc1.net/
#f0bd65
style3
scrollauto
No more posts to load.
Load More Posts
Loading posts...
f0bd65
/var/www/inc1.net/
none

/%postname%/
Sort Gallery
on
yes
yes
off
on
off
off
ru