String.prototype.trim()

Description:

Trim the string spaces.

Parameters:

  • N/A

Returned Value:

  • Trim result from string

Sample:

var text = " Rynn Wang ";
document.write(text.trim());
//Result: "Rynn Wang"

Last edited Aug 20, 2012 at 9:10 AM by rynnwang, version 3

Comments

No comments yet.