关于超链接传多个参数其中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";
    }    

猜你喜欢

转载自blog.csdn.net/qq_38410795/article/details/84032118
今日推荐