|
fastpost.htm 找到 - } else
- if(strlen(obj.atc_title.value)>$db_titlemax){
- showDlg({type:"error",message:"标题超过最大长度
- <font color='red'>$db_titlemax</font>
- 个字节。",onClose:function(){
- obj.atc_title.focus();
- }});
- return
- false;
- }
下面加 - //回复汉字过滤
- if((obj.atc_content.value+"中").match(/[\\u4e00-\\u9fa5]/g).length<(3)){
- showDlg({type:"error",message:"禁止纯表情,文章内容汉字不能少于 <font color='red'>2</font> 个。",onClose:function(){
- obj.atc_content.focus();
- }});
- return false;
- }
- //回复汉字过滤
|