How do I display an array using XUL elements like a table in HTML
I have an array
data = [{'name':'Bob','email':'bob@gmail.com'}]
How can I render this array using XUL elements (like a table in HTML)? I'开发者_运维百科m using pure Javascript (do not using any JS framework)
How do you want it to look? There's xul:listbox
(example), xul:tree
, and you can also use HTML table if it's exactly what you need.
精彩评论