Problems with js arrays

defines an array days,. When I changed the value of this.day1 in the array, the value of days did not change. Is there any way to make elements in days an array address reference? Hopefully, when day1 changes, so does the value of days [0].

clipboard.png

clipboard.png

clipboard.png


this.day1 = [];day1days[0]day1

clipboard.png

Jun.11,2021

change this.day1 = [] to this.day1.length = 0

this.day1 = [] changes the reference of day1, this.day1.length = 0 is emptying the array


if you initialize this.days1 into an array first. Then assign a value to days. This is a quote. If you don't achieve your goal, your this.day1 should be a simple type at the beginning of the assignment.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b5fc-462d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b5fc-462d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?