/ ** * Remove the space of the string STR header * @param string * @Return STR removes the string after the header space. * / Function trim (str) {if (str == null) return ""
// Remove all spaces of space (str.charat (0) == ') {str.Substring (1, str.length);}
// Remove the back of the space (str.charat (str.Length-1) == ') {str.Substring (0, str.length-1);}
Return Str;}
Ayuan
9CBS certified blog expert
Blog expert
Huawei old employees
Big Data
More than ten years, in Huawei, Internet Corporation's experience, profound understanding and practical experience in CRM, big data, mainly sharing various project experience, including architecture, Java, big data and other articles