Bootstrap

小程序获取页面信息

// 获取加载的页面
const pages = getCurrentPages() 
// 获取当前页面的对象
const currentPage = pages[pages.length-1] 
//获取前一个页面的对象
const currentPage = pages[pages.length-2] 
// 当前页面url
const url = currentPage.route 
// 如果要获取url中所带的参数可以查看options
const options = currentPage.options 

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;