Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グループに子があるかどうかを知らせる関数はありますか? 子を持たないグループで Mygroup.getChildren() のようにしようとすると、エラーが発生するためです。ありがとう
このフィドルをチェックしてください
http://jsfiddle.net/LvCmT/
if(group.getChildren().length==0) { alert("group doesn't has children"); } else { //do ur stuff }
if($(Mygroup).children().length==0) { alert("group doesn't has children"); } else { //do your stuff }