Mini Program checkbox selection

clipboard.png

clipboard.png

there is no checked item in the original data newsInformdata. Item.checked is added after a loop, but it is not displayed on the page. Console.log can be printed out. I do not know if the shallow copy is designed. It is not clear how to solve the problem

.

Mini Program supports bidirectional data binding. There is no checked item in the original data newsInformdata, so although you have added the item checked, it is not monitored by the system. You need to use the API of this.setData to set up checked listening

Menu