html要素作成 - higeorange's blogを改良 function createHTML(obj,par){ for(var k in obj) { if(typeof obj[k] == 'object' && obj[k].constructor == Object && k == 'children') { for(var j in obj[k]){ var el = document.createElement(j); par.appendChild(el); createHTML(obj[k][j],el) } } else if(typeof obj[k] == 'object' && obj[k].constructor == Object && k == 'style') { for(var l in obj[k]) par[k][l] = obj[k][l]