<script type="text/javascript">
    WfForm.bindDetailFieldChangeEvent("field7144",function(id,rowIndex,value){
        console.log("WfForm.bindDetailFieldChangeEvent--",id,rowIndex,value);
        var mxzd = "field7144_"+rowIndex;
        console.log(mxzd);
        chack_name(value,mxzd);
    });
    function chack_name(str,mxzd){
  var pattern = new RegExp("词语1|词语2");
  if (pattern.test(str)){
    alert("禁止填写词语1、词语2,请重新输入");
    WfForm.changeFieldValue(mxzd, {value:""});
  }
  return false;
}
</script>

关键代码:

function chack_name(str,mxzd){

  var pattern = new RegExp("词语1|词语2");

  if (pattern.test(str)){

alert("静止填写词语1、词语2,请重新输入");

效果: