我无法相信为黑莓做最简单的事情是多么困难。我要做的就是从菜单导航到我的 BlackBerry WebWorks 应用程序中的另一个本地网页。这是代码:
function clickMe1() {
window.location = "what.html";
}
blackberry.ui.menu.clearMenuItems();
var item = new blackberry.ui.menu.MenuItem(false, 1, "What It Does", clickMe1);
blackberry.ui.menu.addMenuItem(item);
但 Ripple 抱怨说:“在此服务器上找不到请求的 URL /ripple/what.html。” 哇。
如果我这样做:
<a href="what.html">Click me.</a>
找到what.html没问题,所以什么给了???