1. 程式人生 > >關於超連結傳多個引數其中URL 中的帶 {xxx}的問題,

關於超連結傳多個引數其中URL 中的帶 {xxx}的問題,

window.location.href=basePath+"/weixin/car/paysuccess/"+wid+"?returnMSG="+returnMSG; 

 

@RequestMapping(value = { "/paysuccess/{wid}" }, method = { RequestMethod.GET })
    public String paysuccess(@PathVariable String wid,String returnMSG,Model model) {
        
        model.addAttribute("wid", wid);
        model.addAttribute("returnMSG", returnMSG);
        return "weixin/pay-success";
    }