WeChat Mini Programs's setInterval can't be turned off.

question:
1. Create a timer in the custom function: this.data.inval = setInterval ();
2. Clear clearInterval (this.data.inval) in the bindchange event of swiper; it is found that it cannot be cleared.

is there any situation in which the timer can not be cleared? ask for advice


Why are timers in data? just define a timer variable on the outside.

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-1b3bf8d-2ba53.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-1b3bf8d-2ba53.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?