prettyPrint

画像 Githubで著者をフォローしている人は、彼が最近「prettyPrint」と呼ばれる新しいプロジェクトを追加したことに気付いているかもしれません。
「PrettyPrint」は、ColdFusionのcfdumpに似たJavaScript用のブラウザー変数ダンパーです。 デバッグ中に表示するために、テーブルの形式で任意のタイプのオブジェクトを表示できます。
例を参照してください

ハイライト:



使用例:


var table = prettyPrint( anyRandomThing, { /*optional options object */ } );

// Making the table viewable is down to you...
// eg
document .body.appendChild(table);


* This source code was highlighted with Source Code Highlighter .


Source: https://habr.com/ru/post/J63009/


All Articles