获取 Javascript 对象的属性和方法
function showProps( obj ) { var props = ""; for (var p in obj) { props += p + "=" + obj[p] + "\t"; } alert(props);}