You can execute a method in an array in a WeChat mini-program’s WXML by using the wx:for
directive to loop through the array and bind the method to an event, such as a button click.
Here is an example:
<!-- in the data section -->
data: {
myArray: [
{
name: 'item1',
metho