摘要:
View Code 1 //递归删除parent下的dom节点和dijit组件 2 function deleChild(parent){ 3 var childs =parent.childNodes; 4 for(var i=childs.length;i--;i>0){ 5 if( childs[i].hasChildNodes() ){ 6 deleChild(childs[i]); 7 } 8 9 if(childs[i] && childs[i].id && dij... 阅读全文
摘要:
View Code 1 //返回一个对象的属性和方法,用于Debug 2 function getMethodAndPropertys(obj) { 3 var result = []; 4 for (var id in obj) { 5 try { 6 if (typeof(obj[id]) == "function") { 7 result.push("function " + id + ": " + obj[id].toString() + "<br /><br />"); 8 } . 阅读全文