一、insertNode
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .edit { width: 400px; height: 140px; border: 2px solid #ff7f50; overflow: auto } </style> </head> <body> <div class="emoji-container"> </div> <div class="edit" contenteditable="true"> </div> <script> const arr = ['