Javascript 从TideSDK中的applicationDirectory加载HTML

Javascript 从TideSDK中的applicationDirectory加载HTML,javascript,html,tidesdk,Javascript,Html,Tidesdk,我正在使用我的应用程序的resourcesfolder中的默认index.html。index.html页面仅用于检查我的应用程序是否有更新(要在应用程序中显示的新html页面) 它工作得很好。。我可以从applicationDataDirectory 但是。。当我完成应用程序更新时,我想用我的updateindex.html页面替换当前的index.html 加载远程html页面效果良好,例如: currentWindow.setURL('http://www.stackoverflow.co

我正在使用我的应用程序的
resourcesfolder
中的默认
index.html
index.html
页面仅用于检查我的应用程序是否有更新(要在应用程序中显示的新html页面)

它工作得很好。。我可以从
applicationDataDirectory

但是。。当我完成应用程序更新时,我想用我的
updateindex.html
页面替换当前的
index.html

加载远程html页面效果良好,例如:

currentWindow.setURL('http://www.stackoverflow.com/' );
然而,当我尝试像

currentWindow.setURL('C:\Documents and Settings\myuser\Application Data\TideSDK\testApp\index_update.html' );  
没有附加任何内容


有人能帮我吗

您可以修改要在应用程序中加载的索引页的路径

这可以在tiapp.xml文件中修改。替换“app://index.html“与”app://updateindex.html“你应该很乐意去