jqueryで成功時にコントローラー@RequestMapping("/test")に遷移させるには?
<script type="text/javascript" src="js/jquery1.5.1.js"></script> <script type="text/javascript"> $(function() { $('#button01').click(function() { $.ajax({ type: 'GET', url: 'load.html', dataType: 'text', success: function(data) { $('#sample01').append(data); }, error:function() { alert('問題がありました。'); } }); }); }); </script>@RequestMapping("/test")
public string test() {
return "test";
}
あなたの回答
tips
プレビュー