微件:Excelinput4:修订间差异
来自Limbo Wiki
(创建页面,内容为“<includeonly><div id="BatchCreateByTemplate"> <textarea id="input" style="width:100%;height:300px"></textarea> <div id="BCBTdisplay" class="row"></div> <button style="padding:0.5em 1em" onclick="submit()">转换</button> <textarea id="output" style="width:100%;height:300px"></textarea> <script> let output = {}; function submit(){ output = {}; let rows = $("#input").val().split("\n"); $.each(rows, function(i, row){ let cols = row.split("\t"); cols = cols.…”) |
小无编辑摘要 |
||
第41行: | 第41行: | ||
</script> | </script> | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
测试功能,支持4级excel的导入为树 | |||
<pre> | |||
{ | |||
a:{ | |||
b:[c,d] | |||
} | |||
} | |||
</pre> | |||
{{#widget:Excelinput4}} | |||
</noinclude> | </noinclude> |