我按照this教程学习sencha touch 2.在第3章中,当我想要激活第二个视图时,它是未定义的:
var newPage = this.getNewPageContainer();
Ext.Viewport.animateActiveItem(newPage, this.slideRightTransition); // noting happend.
console.log(this.getNewChallangeContainer()); // print "undefined"
我也在config上设置,参考:
refs: {
// We're going to lookup our views by xtype.
pagecontainer: "pagecontainer",
newPageContainer: "newpagecontainer"
}
谢谢:)