This commit is contained in:
zhuzihcu
2023-03-29 18:10:34 +08:00
parent 76ed63eaf0
commit ff4ec71379
105 changed files with 355 additions and 17 deletions

View File

@ -420,4 +420,17 @@ Item {
nav_list.currentIndex = index
}
function startPageByTitle(title){
for(var i=0;i<items.children.length;i++){
if(items.children[i].title === title){
if(nav_list.currentIndex === i){
return
}
items.children[i].tap()
nav_list.currentIndex = i
return
}
}
}
}