摘要: js代码 /** 获取UTC格式的字符串,参数必须是*/var solrDateFormat = function (o){ var date; if(typeof o == 'string'){ date = new Date(o); }else if(o instanceof Date){ ... 阅读全文
posted @ 2015-04-29 19:16 勿妄 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 转载:JS 去字符串空格 总结str为要去除空格的字符串:去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,"");去除左空格:str=str.replace(... 阅读全文
posted @ 2015-04-29 17:41 勿妄 阅读(140) 评论(0) 推荐(0) 编辑