这样试试:showDeleteBtn: function(event){var index = event.currentTarget.id;this.data.todos[index].isDelete = true;this.setData({todos: this.data.todos});)