Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel="help" href="text-autospace-dynamic-text-001-ref.html">
<div id="target">国国国国</div>
<script>
const target_text = document.getElementById('target').firstChild;
document.body.offsetTop; // Force layout.
target_text.insertData(2, 'AA国国AA');
</script>