var pages = getCurrentPages() //页面路径等于某某时的操作 if (pages[pages.length - 1]['route'] === 'pages/business/business') { }