Featured
javascript
print_r dalam javascript
Posted byFungsi Javascript yang fungsinya seakan fungsi print_r PHP function print_r(theObj){ if(theObj.constructor == Array || theObj.constructor == Object){ document.write("") for(var p in theObj){ if(theObj[p].constructor == Array|| theObj[p].constructor == Object){ document.write("["+p+"] => "+typeof(theObj)+""); document.write("") print_r(theObj[p]); document.write("") } else { document.write("["+p+"] => "+theObj[p]+""); } } document.write("") } } Selamat mencuba.