---
title: "要过滤的字符"
author: "rainyear"
date: "2011-09-15T19:23:06Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2011-09-15T19:23:06Z"
id: 1172846
url: "https://rainyear.iteye.com/blog/1172846"
---

String.prototype.TextFilter=function(){
 	var pattern=new RegExp(""); //要过滤的字符
 	var rs="";
 	for(var i=0;i<this.length;i++){
  		rs+=this.substr(i,1).replace(pattern,'');
 		}
 	return rs;
	}