(function(){
var stringUtils = {
//TODO 单词首字母大写
initCap : function( param ){
param = param || "";
var str = param.toLowerCase();
str = str.replace(/w+/g,function( arg ){
return arg.substring(0,1).toUpperCase() + arg.substring(1);
});
return str;
}
};
window.stringUtils = stringUtils;
})( window);