河边杨柳树

在河边杨柳树下

导航

常用的.Net 知识点

1、Replace

C#:(using System.Text.RegularExpressions;) string txt = Regex.Replace(txtLog.Text.ToString(), "/(^\\s*)|(\\s*$)/g", "");

js:   var txt = document.all.txtLog.value.replace(/(^\s*)|(\s*$)/g, "");

posted on 2016-07-19 09:15  yukifish  阅读(525)  评论(0编辑  收藏  举报