我有 json 数据,我想在标签标签内的输入标签之后打印文本,但 json2html 在输入标签之前打印文本!
jon2html 结果:
<div class="checkbox">
<label> **one**
<input name="checkbox" id="checkbox1" value="checkbox1" type="checkbox">
</label>
</div>
我想要的结果:
<div class="checkbox">
<label>
<input name="checkbox" id="checkbox1" value="checkbox1" type="checkbox">
**one**
</label>
</div>
json:
"tag": "html",
"children": [
{
"tag": "body",
"children": [
{
"tag": "div",
"class": "form-group",
"html": " ",
"children": [
{
"tag": "label",
"class": "col-lg-2 control-label",
"html": "option"
},
{
"tag": "div",
"class": "col-lg-9",
"id": "checkbox",
"html": " ",
"children": [
{
"tag": "div",
"class": "checkbox",
"html": " ",
"children": [
{
"tag": "label",
"html": " one ",
"children": [
{
"tag": "input",
"name": "checkbox",
"id": "checkbox1",
"value": "checkbox1",
"checked": "",
"type": "checkbox"
}
]
}
]
},