a0printr.js-20171219gz
Github: https://github.com/jiaju99/js-print_r
Author: http://feilong.org
what, now what to output. default none
gap, to insert before output
/** On your project,Use uglified a0printr **//* eg. have a test */ var arr = []; arr['0'] = ['i', 'love', 'you','baby']; arr['1'] = ['a', 'b', 'c','d']; arr['1'][1] = {a:'6y', b:'9z'}; arr['2'] = {'k0':'va','k1':'vb'}; arr['3'] = {}; arr['4'] = null; arr['5'] = [false, true, true,true];
var arrTree1=a0printr(arr); console.log(arrTree1);
var arrTree2=a0printr(arr,'----'); console.log(arrTree2);
var arrTree3=a0printr(arr,' '); console.log(arrTree3);