js向ios传参的方法
window.onload=function()
{
var main=document.getElementById('main');
var detail=document.getElementById('detail');
main.onclick=function(){
document.location='main:'+main.href;
}
detail.onclick=function(){
document.location='detail:'+detail.href;
}
}