POJO

수정

POJO Sample Class

public class SimpleBean {
    private String id;
    private String name;
    
    public void setId(String id) {
        this.id = id;
    }
    
    public void getId() {
        return this.id;
    }
    
    public void setAge(String age) {
        this.age = age;
    }
    
    public String getAge() {
        return this.age;
    }
}

Javascript에서 Plain Object

jQuery.isPlainObject("11");
false
jQuery.isPlainObject(11);
false
jQuery.isPlainObject({});
true
jQuery.isPlainObject([]);
false
jQuery.isPlainObject([1,2,3]);
false
jQuery.isPlainObject([{id : "A001", name : "홍길동"}, {id : "A002", name : "김남길"}]);
false
jQuery.isPlainObject({id : "A001", name : "홍길동"});
true
jQuery.isPlainObject(true);
false
jQuery.isPlainObject(null);
false
서재에서 보기 →