PageAdmin网站内容管理系统(CMS)交流论坛

首页 » PageAdmin使用区 » 安装及使用交流 » 请问4.0.10版本,信息表简介提交前自动填写简介的代码怎么写
137317126 - 2020/12/14 17:04:55
发现4.0.10版本使用旧版的代码,代码失效不能提交,请问这个代码要怎么写?旧代码:
  1. var txt=UE.getEditor('Content').getContentTxt();
  2. txt=txt.replace(/(^\s+)|(\s+$)/g, "");
  3. txt=txt.replace(/\s/g,"");
  4. if(txt.length>100)
  5. {
  6. txt=txt.substring(0,100)+"..."
  7. }
  8. if($("#Introduction").val()=="")
  9. {
  10. $("#Introduction").val(txt)
  11. }
复制代码
xiyou - 2020/12/14 17:17:18
帮助:http://www.pageadmin.net/help/1155.cshtml
137317126 - 2020/12/14 17:23:19
回复 2楼xiyou的帖子

谢谢
1
查看完整版本: 请问4.0.10版本,信息表简介提交前自动填写简介的代码怎么写