我已经用JS创造了一款简单的游戏,现在我正尝试着在iOS应用中执行它。我所能想到的最好方法便是在iOS应用中使用Vapor运行一个本地web服务器。但是我真的不知道如何加载我现有的HTML/JS文件。
您可以使用filemidleware来提供来自Vapor服务器的静态资产,包括现有的JS和HTML文件
我已经用JS创造了一款简单的游戏,现在我正尝试着在iOS应用中执行它。我所能想到的最好方法便是在iOS应用中使用Vapor运行一个本地web服务器。但是我真的不知道如何加载我现有的HTML/JS文件。
您可以使用filemidleware来提供来自Vapor服务器的静态资产,包括现有的JS和HTML文件
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium