10 2011 档案

摘要:publicstaticstringNoHTML(stringHtmlstring){//删除脚本Htmlstring=Htmlstring.Replace("\r\n","");Htmlstring=Regex.Replace(Htmlstring,@"<script.*?</script>","",RegexOptions.IgnoreCase);Htmlstring=Regex.Replace(Htmlstring,@"<style.*?</style>" 阅读全文
posted @ 2011-10-27 21:43 王大湿 阅读(371) 评论(0) 推荐(0) 编辑
摘要:publicstaticStringTranslate(StringstrTranslateString,stringflang,stringtlang){stringappId="AFC76A66CF4F434ED080D245C30CF1E71C22959C";//http://www.bing.com/toolbox/bingdeveloper/申请自己的appidstringuri="http://api.microsofttranslator.com/v2/Http.svc/Translate?appId="+appId+"& 阅读全文
posted @ 2011-10-26 19:02 王大湿 阅读(376) 评论(0) 推荐(0) 编辑