problem description
as the title
error message this.getCurrentPage is not a function;at App setPageUserInfo function
TypeError: this.getCurrentPage is not a function
related codes
/ / Please paste the code text below (do not replace the code with pictures)
setPageUserInfo: function setPageUserInfo() {
var currentPage = this.getCurrentPage(),
newdata = {};
newdata["userInfo"] = this.getUserInfo();
currentPage.setData(newdata);
},
getCurrentPage: function getCurrentPage() {
var pages = getCurrentPages();
return pages[pages.length - 1];
},