What is the best way to trim() in javascript

前端 未结 19 1931
眼角桃花
眼角桃花 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.

提交回复
热议问题