The text-getting method innerText in IE is not supported in Firefox
firefox has been changed to the textContent method/property
and the whitespace characters in the middle of the text are ruthlessly replaced in Firefox
when used Exceptionally inconvenient
Now it’s okay, the innerText method has been redefined in Javascript
so that the innerText method can also be used in Firefox
and this method solves the problem of whitespace characters in firefox
Use Method:
Place the following script in the page
No matter IE or Firefox, you can use obj.innerText to extract text