Javascript Notes: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
} | } | ||
</pre> | </pre> | ||
<pre> | |||
if ( console && console.log ) { | |||
console.log( "Sample of data:", data.slice( 0, 100 ) ); | |||
} | |||
</pre> | |||
<pre> | |||
for ( var key in keys(data).sort) { | |||
elem.html = elem.html . key; | |||
} | |||
</pre> | |||
Also see [[jquery notes]] | |||
== ON TCP == | |||
old bug: https://github.com/nodejs/node-v0.x-archive/issues/9066 - good exmaples | |||
reference: https://nodejs.org/api/net.html#net_event_close | |||
on tcp in general: https://www.joyent.com/blog/tcp-puzzlers | |||
== Also See == | |||
* [[Npm]] | |||
[[Category:Javascript]] | [[Category:Javascript]] |
Latest revision as of 15:46, 10 January 2019
function showattrs(theObject) { var out="<pre>" for (var attr in theObject) { out+=attr+":"+ theObject[attr]+"\n" } out+="</pre>" var block = document.getElementById("showattrs") block.innerHTML=out }
if ( console && console.log ) { console.log( "Sample of data:", data.slice( 0, 100 ) ); }
for ( var key in keys(data).sort) { elem.html = elem.html . key; }
Also see jquery notes
ON TCP
old bug: https://github.com/nodejs/node-v0.x-archive/issues/9066 - good exmaples
reference: https://nodejs.org/api/net.html#net_event_close
on tcp in general: https://www.joyent.com/blog/tcp-puzzlers