我正在尝试关注这篇文章,他在其中描述了使用的婴儿步骤
在本节中,他试图描述如何从一个页面跳转到另一个页面。我想看看我是否可以做 4 级,但不知道怎么做;这也可能是一个纯 JS 问题。
> App.onLaunch = function(options) {
> alert("Hello!", function() {
> var helloDocument = getDocumentContents("http://localhost:8000/hello.tvml", function(xhr)
> {
> navigationDocument.dismissModal();
> navigationDocument.pushDocument(xhr.responseXML);
> });
> }); }
有没有人帮忙,怎么回调?
> App.onLaunch = function(options) {
> alert("Hello!", function() {
> var helloDocument = getDocumentContents("http://localhost:8000/hello.tvml", function(xhr)
> {
> navigationDocument.dismissModal();
> navigationDocument.pushDocument(xhr.responseXML);
> });
> }); }