if(/[%&'|<>]/.test(str))
//有非法字符
else
//无非法字符
posted on 2007-04-20 17:21    阅读(164)  评论(0)    收藏  举报