要在其他页面获取到globalData的值不你能通过this.globalData.name的方法获取,

要使用到app.js文件中 定义的数据,在该页面的.js文件中

var app = getApp()

通过app.globalData.name的方式可以取到app.js中定义的值