Tabbar click event


I’m using two tab bars per page.
It’s a tab bar with a different definition.
I want to run a different function every time I click on each tab bar.

so“click”, function(){
});“click”, function(){

I wrote it like this and it doesn’t work.
What can I do?
For your information, the Tabbar event function can’t solve the problem due to the conflict with the existing code.


Please, check the available tabbar events:
according to your needs, most probably you need to use a change event: