In Mini Program, how to determine which page opens the current page?

Today, you can"t get it with getCurrentPages (). There"s only one member in the array all the time. Is there any other way?


it's best to use getCurrentPages . If you really can't get it, you can try to define a global variable to store the page field to determine.

Menu