`
xiaoheliushuiya
  • 浏览: 404162 次
文章分类
社区版块
存档分类
最新评论

初次使用Cordova/Phonegap遇到的两个常见问题

 
阅读更多
Cordova及Phonegap中对Windows桌面操作系统的支持
Cordova 的历史版本下载地址 http://archive.apache.org/dist/cordova/
Phonegap 的历史版本下载地址 http://phonegap.com/download/
Phonegap 1.2.0~2.1.0 中不支持 Windows 桌面操作系统
Phonegap 2.2.0~2.7.0 在 Windows 桌面操作系统中仅支持Windows 8
Cordova 2.3.0~2.7.0 在 Windows 桌面操作系统中支持 Windows 7 和 Windows 8。其中 Windows 7 版权仅限于使用 Visual Studio 2012 编译,不支持 Visual Studio 2010 编译。

本文原发于:http://xuekaiyuan.com/forum.php?mod=viewthread&tid=3

修改 Cordova for Windows 7 的首页面地址
Cordova for Windows 7 的首页面地址为 www\index.html,定义在 shell.c 文件中的第9行。
#define BASE_URL L"www\\index.html"
在 shell.c 文件中的第1386行使用。
GetFullPathName(BASE_URL, _MAX_PATH, full_path, 0); // Possible failure if the base directory has a very long name
如果需要修改首页面地址,看取值的情况,如果是固定值的话,建议修改第9行。
#define BASE_URL L"www\\index.html"
如果是变量的话,建议修改第1386行。
GetFullPathName(BASE_URL, _MAX_PATH, full_path, 0); // Possible failure if the base directory has a very long name
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics