Não digo muito bobagem, vou publicar o código diretamente.
<! master /dist/jquery.jsonview.css/> <script type = text/javascript src = http: //code.jqury.com/jqury.min.js> </sCript> ipt src = https: //rawgithub.com /yesmeck/jquery-jsonview/master/dist/jqury.jsonview.js> </script> <script type = text/javascript> var json = {hey: cara, anumbor: 243, anobject: {whoa: nuts, anarray: [1,2, thr <h1> ee], outro aquilo: [1, 2], mais: material}, incrível: verdadeiro, falso: falso, significado: nulo, japonês: amanhã. , link: http://jsonview.com, NotLink: http://jsonview.com é ótimo}; ', Função () {$ (' #json '). $ ('#TOGLE-LEVEL1-BTN') '). Colapso </botão> <botão id = expand-btn> expandir </butut> <botão id = alternar-btn> alternar </button> tton id = altern-level1-btn> alternar1 </button> <botão id = Toggle-level2-btn> Alterne nível2 </button> <div id = json> </div> </html>
Como mostra a demonstração, a formatação JSON
O código acima é o código do JSON HTML Introduzido pela Xiaobian. Muito obrigado pelo seu apoio ao site VevB Wulin!