根据他们的教程:
所有位置属性都可以是超音速路线或URL。
当我在structure.coffee中使用它时,没有加载任何内容,只显示初始启动屏幕:
rootView:
location: "http://example.com/page1"
我还应该设置什么?
这似乎是GitHub上的一个当前问题。
来自那个帖子:
A workaround is to run a local clone of Steroids and change
https://github.com/AppGyver/steroids/blob/master/src/steroids/features.coffee#L6
to be false, after which you can write
splashscreen:
autohide: true
在您的config/app.coffee
中。