function trim(str) {
if (str && typeof str === "string")
{ return str.replace(/(^\s*)|(\s*)$/g,""); //去除前后空白符 }
}
posted on 2018-02-24 15:27 RonnieQin 阅读(187) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 RonnieQin Powered by .NET 9.0 on Kubernetes