只用在OntitleClick事件里面给setData外层加上var that = this;就行了
因为在调用 OntitleClick() 之前就已经把 this 复制了一份保存在 that 变量中,你复制的这个this是指向的page中data,那你相当于用这行代码搭了个桥,让that.setData指向了Page中的data
参考地址:https://www.cnblogs.com/chenyuhang/articles/9904119.html