Js implementation click to add an input node
- 2020-03-30 04:29:29
- OfStack
The code is too simple, so I won't say any more nonsense.
<script>
function text(){
var obj=document.createElement("input");
obj.value="1";
document.body.appendChild(obj);
}
</script>
<a href="javascript:text()">add</a>