我有一个带有ajax的jQuery,用于从servlet中获取一些数据
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
url:'ServiceToFetchDocType',
type:'post',
cache:false,
success: function(response){
//some data fetched from ServiceToFetchDocType
//Need to invoke another method here
}
});
</script>
Run Code Online (Sandbox Code Playgroud)
是否可以在success函数中调用另一个方法并获得一些值?我对jQuery和ajax很新,任何形式的帮助都表示赞赏.