【问题标题】:Run AngularJS in WebView Windows 8.1在 WebView Windows 8.1 中运行 AngularJS
【发布时间】:2017-03-23 02:17:11
【问题描述】:

大家。

我在 Windows 8.1(桌面)中使用一个应用程序,它有一个 WebView,可以在 AngularJS 中加载一个网站。这个站点是本地的,AngularJS 生成的所有文件都在 Assets/MySite 的应用程序中。

当我将 AngularJS 生成的内容放入 WebView 时,它本身并不能正确呈现。当我通过 IIS 运行该站点时,该站点运行良好。

问题是,我可以使用 Web 服务加载 WebView 吗?案例 AngularJS 只适用于服务网络,对吧?

如果我这样做:

webView.Source = new Uri("ms-appx-web:///Assets/MySite/index.html");

没用。

Tks

【问题讨论】:

    标签: .net angularjs webview windows-8.1 windows-applications


    【解决方案1】:

    我在这里找到了解决方案!

    A simple in-process HTTP server for Windows 8 Metro apps

    Tks

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-20
      相关资源
      最近更新 更多