WeChat applet setData assignment failed

The reason is that nextVipName in the last line of this.setData assignment code, index value is 4, but the length of data is 5, so the data[index+1] marked as index+1 does not exist, so setData assignment fails. problem.

Modify it and it's ok:

Guess you like

Origin blog.csdn.net/qq_41588568/article/details/108979975