Lua webview不适用于corona中的本地html文件

Lua webview不适用于corona中的本地html文件,lua,coronasdk,Lua,Coronasdk,我必须使用在科罗纳然后它不会打开我的本地html文件。如何在corona中更好地使用?模拟器不支持webView 在代码目录中使用“files”fodler构建应用程序时,也可以简单地使用以下命令: local webView = native.newWebView( 0, 50, 320, 430 ) webView.anchorX = 0; webView.anchorY = 0; print("***************************************files/");

我必须使用在科罗纳然后它不会打开我的本地html文件。如何在corona中更好地使用?

模拟器不支持webView

在代码目录中使用“files”fodler构建应用程序时,也可以简单地使用以下命令:

local webView = native.newWebView( 0, 50, 320, 430 )
webView.anchorX = 0;
webView.anchorY = 0;
print("***************************************files/");
print("files/"..data[1].name..".html");
local htmlFile = "files/"..data[1].name..".html"

--Ancient Egypt
webView:request( "files/"..data[1].name..".html", system.ResourceDirectory );
webView:addEventListener( "urlRequest", webListener );
而不是

webView:request( "files/"..data[1].name..".html");
请尝试使用数据[1]而不是数据[1]。命名以查看它是否返回正确的值

webView:request( "files/"..data[1].name..".html", system.ResourceDirectory );