开发者

Restarting a Sencha Touch App

I'm currently working with a Sencha Touch localized app, and all of the string values such as titles, labels and forms are generated on launch, meaning that if I want to switch the langu开发者_如何转开发age I need to reload the whole app.

Is there a way I can restart/reload the whole application or views without refreshing the browser?


Try using the native JavaScript code for reloading the session i-e

location.reload();


You can always fire a launch event in the Ext.Application class, this will invoke all the app initialization code without refreshing the browser

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜