2023-06-01から1ヶ月間の記事一覧

文字列からテーブルを作る

配列からテーブルを作る <meta charset="utf-8"> <title></title> <style> .red { color: red;} </style> <body> <table border="1" id="TB"></table> <script> function ary2thead (ary = [ ], thead = document.createElement ('thead')) { const textSplitStr = ( th = '(#)?', //文字列の先頭が "#" なら th要素とするための判別 rowS…</body></meta>