C# textBox1.Text.Trim() 的 Trim()

Remove the spaces before and after. For example, if you do not start writing from a fixed frame, after removing the spaces, the part you wrote will be taken, excluding spaces.
Removes all leading and trailing whitespace characters from the current String object. is to remove the spaces on both sides of the string

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324613324&siteId=291194637