What is the best way to trim() in javascript

前端 未结 19 1822
眼角桃花
眼角桃花 2020-11-29 06:32

The question says it all; JS doesn\'t seem to have a native trim() method.

相关标签:
19条回答
  • 2020-11-29 07:06

    Microsoft .NET also has String.trim function as a part of JavaScript Base Type Extensions. It could be used if you are coding ASP.NET application.

    0 讨论(0)
提交回复
热议问题