I want to insert text with a fixed beginning and end but a loop in the middle in a textarea, similar to
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mysql xmlns:xsi="http://www.w3.org/2001/ XMLSch...
<row>
...
</row>
</mysql>
If I want to loop the row part, writing $("#textarea").html($("#textarea").html() temp) can only loop the entire content. What should I do?
The fewer dom operations, the better. The best way is to loop first, then process and then insert, otherwise the performance may be greatly affected
For example:
Can’t you just splice it first and then insert it?