<script type="text/javascript" >
function huoqu(){
var oimg=$("input[name='gctem']:checked").val();
var zhufuy=$("#wenben").val();
/*
alert(oimg);
$("#women").attr("src","../Public/images/hekaimg/heka"+oimg+".jpg" );*/
window.location.assign(encodeURI("__APP__/Gccard/yheka?oimg="+oimg+"&zhufuy="+zhufuy));//
encodeURI
编码
}
</script>
-----------------------------------------------------------------------------------------------------------------------------------------------------
<script type="text/javascript" >
$(function(){
//获得第一个属性
var url=location.href;
var tmp1=url.split("?")[1];
var tmp2=tmp1.split("&")[0];
var tmp3=tmp2.split("=")[1];
var oimg=tmp3;
alert(oimg);
//获得第二个属性
$(".cardbg").attr("src","../Public/images/hekaimg/heka"+oimg+".jpg");
//获得第二个属性
var tmp9=url.split("?")[1];
var tmp4=tmp9.split("&")[1]; //获取第二个值
var tmp5=tmp4.split("=")[1];
var zhufuy=tmp5;
$(".message").html(decodeURI(zhufuy));//
decodeURI解码
})
</script>