当前位置: 首页 > news >正文

哪些网站可以做gifphp 网站 服务器

哪些网站可以做gif,php 网站 服务器,网站还未被收录可以做推广吗,百度的特点和优势参考文章#xff0c;非常感谢大佬的分享 实现可高亮的输入框 — HighlightTextarea GitHub:highlight-textarea 可看作者上一篇文章 若依 ruoyi-vue SpringBoot聊天敏感词过滤sensitive-word#xff08;一#xff09; 效果图 审核时#xff0c;输入框高亮敏感词#xff…参考文章非常感谢大佬的分享 实现可高亮的输入框 — HighlightTextarea GitHub:highlight-textarea 可看作者上一篇文章 若依 ruoyi-vue SpringBoot聊天敏感词过滤sensitive-word一 效果图 审核时输入框高亮敏感词并且能编辑 前端代码 列表高亮 el-table-columnlabel标题aligncenterproppublishTitle:show-overflow-tooltiptruetemplate slot-scopescopespan v-htmlhighlightPublishTitle(scope.row)/span/template/el-table-columnhighlightPublishTitle(row){let text row.publishTitlefor (const word of row.titleSensitiveWord) {const regex new RegExp(word, g)text text.replace(regex, span stylecolor: red;${word}/span)}return text},编辑表单输入框高亮 el-form-item label标题 proppublishTitlehighlight-textareav-ifopenstylewidth: 100%;placeholder请输入:textform.publishTitletypeinputchange(value) {form.publishTitle value}:highlightKeyform.titleSensitiveWord/highlight-textarea/el-form-item引用组件 import HighlightTextarea from /components/HighlightTextarea/index.vue;components: { HighlightTextarea },npm安装 npm install less^4.2.0 less-loader^7.3.0组件 templatediv classhighlight-boxtemplate v-iftype textareadiv v-ifvalueclasstextarea-outerreftextareaOuter:style{height: ${maxHeight}px}div refouterInner classouter-innerv-htmlhighlightHtml(value)/div/divtextareareftextareaBox:style{height: ${maxHeight}px}:placeholderplaceholderkeyup.entersyncScrollTopv-model.trimvalue/textarea/templatetemplate v-iftype inputdiv v-ifvalueclassinput-outerv-htmlhighlightHtml(value)/divinput typetext:placeholderplaceholderv-model.trimvalue//template/div /templatescript export default {name: HighlightTextarea,data() {return {value: }},props: {placeholder: {type: String,required: false,default: 请输入},text: {type: String,required: false,default: },highlightKey: {type: Array,require: false,default: () []},type: {type: String,required: true,default: textarea},maxHeight: {type: Number,required: false,default: 220}},created() {this.value this.text.replace(/(^\s*)|(\s*$)/g, ).replace(/br \/|br\/|br/g, \n)},mounted() {this.scrollMousewheel()},computed: {},watch: {value(newValue) {this.$emit(change, newValue)}},methods: {highlightHtml(str) {if ((!str || !this.highlightKey || this.highlightKey.length 0) this.type ! textarea) {return str}let rebuild strif (this.highlightKey.filter(item ~str.indexOf(item)).length) {let regStr let regExp nullthis.highlightKey.forEach(list {regStr this.escapeString(list)regExp new RegExp(regStr, g)rebuild rebuild.replace(regExp, span${list}/span)})}if (this.type textarea) {rebuild rebuild.replace(/\n/g, br/).replace(/\s/g, nbsp;)// textarea有滚动条时div底部不能和textarea重合故加一个br/const wrap this.$refs.textareaBoxif (wrap wrap.scrollHeight this.maxHeight) {rebuild rebuild br/}}return rebuild},syncScrollTop() {const wrap this.$refs.textareaBoxconst outerWrap this.$refs.textareaOuterconst outerInner this.$refs.outerInnerif (wrap.scrollHeight this.maxHeight outerInner.scrollHeight ! wrap.scrollHeight) {outerInner.style.height ${wrap.scrollHeight}px}if (wrap.scrollTop ! outerWrap.scrollTop) {outerWrap.scrollTop wrap.scrollTop}},scrollMousewheel() {if (this.type input) {return}this.$nextTick(() {this.eventHandler(add)})},// 处理字符串中可能对正则有影响的字符escapeString(value) {const characterss [(, ), [, ], {, }, ^, $, |, ?, *, , .]let str value.replace(new RegExp(\\\\, g), \\\\)characterss.forEach(function(characters) {let r new RegExp(\\ characters, g)str str.replace(r, \\ characters)})return str},eventHandler(type) {const wrap this.$refs.textareaBoxif (wrap) {let mousewheelevt (/Firefox/i.test(navigator.userAgent))? DOMMouseScroll : mousewheelwrap[${type}EventListener](mousewheelevt, this.syncScrollTop)wrap[${type}EventListener](scroll, this.syncScrollTop)}}},destroyed() {this.eventHandler(remove)} } /scriptstyle langless width: 500px; .highlight-box {font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;position: relative;display: flex;font-size: 12px;width: width;position: relative;color: #333333;background: #ffffff;border-radius: 5px;overflow: hidden;.textarea-outer,.input-outer {box-sizing: border-box;width: width;position: absolute;top: 0;left: 0;right: 0;border: 1px solid transparent;border-top: 0;// 鼠标事件失效 ie6-10不支持pointer-events: none;cursor: text;span {color: #F27C49;}:hover {border-color: #4C84FF;}}.textarea-outer {overflow-y: auto;line-height: 20px;word-break: break-all;.outer-inner {padding: 5px 8px;width: 100%;box-sizing: border-box;}}textarea {width: width;line-height: 20px;resize: none;}.input-outer,input {width: width;height: 28px;line-height: 28px;}.input-outer {bottom: 0;padding: 0 8px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}textarea,input {font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;font-size: 12px;// position: relative;// z-index: 2;// 光标的颜色color: #333333;// 文本颜色text-shadow: 0 0 0 rgba(0, 0, 0, 0);-webkit-text-fill-color: transparent;background: transparent;border-radius: 5px;border: 1px solid #E0E0E0;padding: 4px 8px;box-sizing: border-box;::placeholder {-webkit-text-fill-color: #999999;}:hover {border-color: #4C84FF;}:focus {border-color: #4C84FF;box-shadow: 0 0 0 2px #DBE4FF;outline: none;}} } /style 后端代码 触发敏感词记录 /*** 敏感词检查**/public void sensitiveWordCheck(SubPublishing subPublishing) {ListTzLySensitiveWordRecord recordList new ArrayList();Date nowDate DateUtils.getNowDate();//找出标题的敏感词ListString titleList SensitiveWordHelper.findAll(subPublishing.getPublishTitle());TzLySensitiveWordRecord dbTitle sensitiveWordRecordService.selectTzLySensitiveWordRecordByMessageIdAndSource(subPublishing.getId(), HYZR_TITLE);//插入if (ObjectUtil.isNull(dbTitle) CollectionUtils.isNotEmpty(titleList)) {TzLySensitiveWordRecord record new TzLySensitiveWordRecord();record.setWordId(null);// 敏感词IDrecord.setWord(StrUtil.join(,, titleList)); //敏感词record.setMessageId(subPublishing.getId());// 主键IDrecord.setUserId(Long.valueOf(subPublishing.getCreatorId()));// 发送人IDrecord.setUserName(subPublishing.getCreatorName());// 发送人姓名record.setMobile(subPublishing.getCreatorTel());// 发送人手机号record.setSendTime(nowDate);// 发送时间record.setIsDeleted(0);// 是否删除record.setCreatedDate(nowDate);// 创建时间record.setCreatedBy(Long.valueOf(subPublishing.getCreatorId()));// 创建人record.setSource(HYZR_TITLE);//消息来源 会员值日record.setMessage(subPublishing.getPublishTitle()); //记录实际发送消息record.setReplaceMessage(subPublishing.getPublishTitle()); //记录替换的消息recordList.add(record);//更新} else if (ObjectUtil.isNotNull(dbTitle)) {dbTitle.setWord(StrUtil.join(,, titleList)); //敏感词dbTitle.setLastModifiedDate(nowDate);// 修改时间dbTitle.setLastModifiedBy(Long.valueOf(subPublishing.getCreatorId()));// 修改人dbTitle.setMessage(subPublishing.getPublishTitle()); //记录实际发送消息dbTitle.setReplaceMessage(subPublishing.getPublishTitle()); //记录替换的消息recordList.add( dbTitle);}TzLySensitiveWordRecord dbContent sensitiveWordRecordService.selectTzLySensitiveWordRecordByMessageIdAndSource(subPublishing.getId(), HYZR_CONTENT);if (CollectionUtils.isNotEmpty(recordList)) {sensitiveWordRecordService.saveOrUpdateBatch(recordList);}}回显敏感词记录 SubPublishing subPublishing this.getById(id);//查询是否触发敏感词MapString, TzLySensitiveWordRecord sensitiveWordRecordMap sensitiveWordRecordService.selectListByMessageId(id).stream().collect(Collectors.toMap(TzLySensitiveWordRecord::getSource, o - o));if (!sensitiveWordRecordMap.isEmpty()) {TzLySensitiveWordRecord title sensitiveWordRecordMap.get(HYZR_TITLE);if (ObjectUtil.isNotNull(title)) {subPublishing.setTitleSensitiveWord(StrUtil.split(title.getWord(), ,));}
http://www.hkea.cn/news/14319742/

相关文章:

  • 平谷手机网站建设哪个网站推广比较好
  • 网站建设公司运营网络项目设计方案
  • 做360网站优化快速闪图在线制作网站
  • 网站表单提交到qq邮箱手机软件商店免费下载
  • 网站部署环境工商企业注册登记网官网
  • 织梦网站开发语言国外网站建设发展现状
  • 聊城网站建设有限公司怎么免费建立公司网站
  • 网站建设流程平台html前端开发
  • 网站域名试用期东莞网站营销推广公司
  • 做吃的教程网站买了域名怎么做网站
  • 湛江网站建设方案书工程建设监理网站
  • 官方网站建设公关键词密度查询站长工具
  • 海报制作网站免费h5 app开发 网站建设
  • seo公司网站推广精美网站模板下载
  • 建设银行手机短信网站怎么开通重庆购物狂论坛
  • 如何做网站企划案2345网址导航下载到桌面
  • 原子艺术做的网站怎么样子h5和手机网站
  • 单页网站如何做做外贸是什么网站
  • 网站怎么做搜索栏保定网站建设方案托管
  • 天津网站建设电焊机新时代文明实践站网址
  • 烘焙食品网站建设需求分析做旅游攻略的网站代码
  • 连运港网络公司做网站网站建设产品需求文档
  • 企业建网站的意义自己网上开店怎么做
  • 无锡网站策划公司企业网站管理系统 开源
  • 怎么做p2p的网站wordpress改了固定链接
  • 网站搬家数据库配置郑州企业展厅设计公司
  • 山东省住房建设厅网站首页网站建设之网页制作语言基础
  • 济南网站设计报价网站做可信认证多少钱
  • 合肥做网站优化公司网页制作工具的选择与网站整体网络没有关系
  • 德州网站建设价格漳州市住房与城乡建设部网站