数码资讯
JS确定FCKeditor内容两种形式是空的
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
表格1:
复制代码代码如下所示:
功能checkfck(关键)
{
无功oeditor = fckeditorapi.getinstance(关键);
无功量= oeditor.getxhtml(真);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
如果(内容= = null | |内容= =){
OEditor.SetHTML();
返回false;
}
返回true;
}
表格2:
复制代码代码如下所示:
功能getmessagelength(STR)
{
无功oeditor = fckeditorapi.getinstance(STR);
奥多姆= oeditor.editordocument VaR;
VaR iLength;
如果(如果为Internet Explorer)。
{
odom.body.innertext.length iLength =;
}
如果壁虎。
{
VAR r = odom.createrange();
r.selectnodecontents(奥多姆。体);
r.tostring iLength =(长度);
}
返回iLength
}
复制代码代码如下所示:
功能checkfck(关键)
{
无功oeditor = fckeditorapi.getinstance(关键);
无功量= oeditor.getxhtml(真);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
如果(内容= = null | |内容= =){
OEditor.SetHTML();
返回false;
}
返回true;
}
表格2:
复制代码代码如下所示:
功能getmessagelength(STR)
{
无功oeditor = fckeditorapi.getinstance(STR);
奥多姆= oeditor.editordocument VaR;
VaR iLength;
如果(如果为Internet Explorer)。
{
odom.body.innertext.length iLength =;
}
如果壁虎。
{
VAR r = odom.createrange();
r.selectnodecontents(奥多姆。体);
r.tostring iLength =(长度);
}
返回iLength
}
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。