当前位置: 代码迷 >> JavaScript >> js 判断fckeditor里的内容不超过数据库字段的数据类型替text的最大储存量
  详细解决方案

js 判断fckeditor里的内容不超过数据库字段的数据类型替text的最大储存量

热度:14   发布时间:2012-09-05 15:19:34.0
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这样应该是可以的。
  相关解决方案