<a href="javascript:void(0)" th:text="${post.title}" th:onclick="|seeContent(${post.post_id})|"></a> function seeContent(postId) {
$.ajax({
url:'/msgContent',
type:'POST',
dataType:'json',
data:{postId:postId},
success:function (data) {
}
})
} @RequestMapping("/msgContent")
@ResponseBody
public String findMsgContent(String postId, Model mode){
System.out.println(postId);
PostTopic msgContent = postService.findMsgContent(postId);
System.out.println(msgContent);
mode.addAttribute("content",msgContent);
return "user_ms.html";
} 這里面輸出都是有值的,但是唯獨 user_ms.html頁面無法跳轉 救救孩子把
uj5u.com熱心網友回復:
別沉啊 來個人吧轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/108915.html
標籤:Web 開發
上一篇:海康熱成像建立長鏈接失敗
