js
[AJAX] arrayList null check
natrue
2021. 2. 21. 17:55
728x90
controller에서 map.put 으로 넣어준 result 값 null인지 체크하기
function fn_test(){
$.ajax({
type: "post",
url : '',
data : {
},
success: function(result){
if(result.testList.length== 0){
// length 가 0이면 NULL
}
}
});
}