读书人

js 判断fckeditor里的内容不超过数据库

发布时间: 2012-09-05 15:19:34 作者: rapoo

js 判断fckeditor里的内容不超过数据库字段的数据类型为text的最大储存量?
内容:<fckeditorv2:fckeditor id="TxtContent" Width="100%" Height="400px" BasePath="../fckeditor/" runat="server"></fckeditorv2:fckeditor>

保存TxtContent.Value,现在数据库里保存值的字段的数据类型为text,长度为16,那保存之前判断fckeditor里的内容不超过数据库字段的最大储存量?

[解决办法]
document.getElementById('TxtContent').value.length<65536
[解决办法]
document.getElementById('TxtContent').value.length<65536这样应该是可以的。

读书人网 >JavaScript

热点推荐