jjzjj

setPersonalInfoValue

全部标签

javascript - 在 QML 中加载页面时运行 javascript 函数

我想像这样运行js函数functionsetPersonalInfoValue(){console.debug("setPersonalInfoValue()");}当页面以QML加载时。我试过这个:Rectangle{id:page2width:100height:62functionsetPersonalInfoValue(){console.debug("setPersonalInfoValue()");}}我想在第1页和第2页之间切换时运行setPersonalInfoValue()函数。我该怎么做? 最佳答案 最后,我使用