我现在用到了FCK编辑器,我要判断用户输入的字符长度是否小于10个字符
var editor=FCKeditorAPI.GetInstance("rcount");
var content=editor.GetXHTML(true);
if(content.value.length<10){
alert("内容至少大于10个字符!");
editor.Focus();
return;
} 但是我这样写怎么没反应啊,帮忙解决哈啊 急!!!!!!~~~~~~~~~~~~
var editor=FCKeditorAPI.GetInstance("rcount");
var content=editor.GetXHTML(true);
if(content.value.length<10){
alert("内容至少大于10个字符!");
editor.Focus();
return;
} 但是我这样写怎么没反应啊,帮忙解决哈啊 急!!!!!!~~~~~~~~~~~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货