Posted By

shansun123 on 01/20/11


Tagged

actionscript


Versions (?)

Space Removal


 / Published in: ActionScript
 

URL: http://active.tutsplus.com/articles/roundups/15-useful-as3-snippets-on-snipplr-com/

移除字符串中的空格

  1. function stripSpaces(string:String):String
  2. {
  3. var s:String = string;
  4. return s.split(" ").join("");
  5. }

Report this snippet  

You need to login to post a comment.