0

我正在使用 applicationcraft.com 并拥有以下测试应用程序http://acft.ws/tyjk

我已经设法停止点击触发并打开一个新窗口。我需要捕获点击链接的 url。然后我可以使用它在移动应用程序的 iframe 或 childBrowser 中打开。

所有警报都是我对网络搜索语法的猜测。第一个答案在这里Capturing .click for URLs

function noopHandler(evt) {

//alert($(this).attr("href") + "/");
//alert(app.w('label').base().attr("href") + "/");
//alert(app.w('label').base()[0].attr("href") + "/");
//alert($(this).find("a").attr('href'));
//alert(app.OBJ2JSON(app.w('label').base()));
//alert(app.OBJ2JSON(app.w('label').base()[0]));
evt.stopPropagation();
evt.preventDefault();
}

function handler_application_onAppStarted(){

var labelToCheck = app.w('label').base()[0];


labelToCheck.addEventListener('click', noopHandler, false);

}

沃比先生

4

0 回答 0