gpt4 book ai didi

javascript - 如何向Appgyver中的View添加webview

转载 作者:行者123 更新时间:2023-12-03 10:31:24 25 4
gpt4 key购买 nike

我已经创建了一个 Controller ,我打算在 WebView 中加载一个网站。

Controller :

angular
.module('example')
.controller('IndexController', function($scope, supersonic) {
$scope.navbarTitle = "Index";
alert("Starting");
});

查看:

<div class="padding" ng-controller="IndexController">
<super-navbar>
<super-navbar-title>
Hello!
</super-navbar-title>
</super-navbar>
<super-navigate view-id="using-the-scanner">
<button class="button button-block button-positive icon-left super-wand">Using the AppGyver Scanner</button>
</super-navigate>
<super-navigate view-id="learn-more">
<button class="button button-block button-positive icon-left super-university">Learn more</button>
</super-navigate>
</div>

我只找到了JS代码:

var googleLayer = new steroids.views.WebView("http://www.google.com");

如何将其添加到 View 中?

最佳答案

当您准备好后,只需调用steroids.layers.push(googleLayer);

关于javascript - 如何向Appgyver中的View添加webview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29200583/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com