1. Obtain the content of the current click
<li @click="problem1"> 1. <span class="blue">About the use of the official account</span> <img src="../img/" alt=""/> </li>
When I click on this li tag, I want to get the text in the span, I can use this method:
problem1: function(e){ (); }
That's OK
2. Chinese judgment
Notice:The character set must be correct, for example, it is all utf-8 or gbk. Otherwise, the judgment will be wrong.
The above method of obtaining text information for current elements is all the content I share with you. I hope you can give you a reference and I hope you can support me more.