web前端js過濾敏感詞

這裏是用文本輸入框還有文本域綁定了失去焦點事件,而後再遍歷敏感詞數組進行匹配和替換。javascript var keywords=["阿扁推翻","阿賓","阿賓"]; $("input[type=text]").live("blur",function(){ _filter_method($(this)); }); $("textarea").live("blur",function(){
相關文章
相關標籤/搜索