我是phonegap的新手。我已经通过了网址。它是返回空值。并使用函数获取 URL 值并调用 getParameterByName('label')
<a href="add-personal-info.html?label=lbl_alias" data-transition="slide">
function getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null)
return "";
else
return decodeURIComponent(results[1].replace(/\+/g, " "));
}
请帮忙..