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

如何提高网站的搜索seo培训资料

如何提高网站的搜索,seo培训资料,网站刚刚开始怎么做,html5手机版下载背景: 某些业务需求比较特殊,需要在表单中校验或实现一些功能,泛微流程表单配置时实现的方式多种多样:JS脚本、SQL语句、公式以及其他一些标准化拖拽功能,本次给大家分享一下流程表单中的公式实现的一些需求场景。泛微…

背景:

  • 某些业务需求比较特殊,需要在表单中校验或实现一些功能,泛微流程表单配置时实现的方式多种多样:JS脚本、SQL语句、公式以及其他一些标准化拖拽功能,本次给大家分享一下流程表单中的公式实现的一些需求场景。
  • 泛微流程表单中的公式后台实际引用的是一些定义好的函数,比如计算函数SUM、ABS、MIN等,字符数据处理函数SUBSTR、TRIM、ToString,日期函数CurrDate、MaxDate等这些都是系统内置的系统函数,当业务诉求功能实现时这些系统函数可能无法实现,就需要自己写一些自定义函数用来支撑这部分需求实现。
    1、实现自动获取当前日期1年后的日期;
/*** 获取一年后时间* @param */
function getAfterDateTime(timeStr) {let now = new Date(timeStr);let year = now.getFullYear()+1; //得到年份let month = (now.getMonth()+1).toString().padStart(2, "0"); //得到月份let day = (now.getDate()).toString().padStart(2, "0"); //得到日期//console.log(1+"___"+year+"_"+month+"_"+day);if (month == '01' && day == '00') {year = now.getFullYear(); //得到年份month = '12';day = '31'} else if ((month == '01' || month == '03' || month == '05' || month == '07' || month == '08' || month == '10' || month == '12')&& day=='31') {year = now.getFullYear() + 1; //得到年份month = (now.getMonth()+ 1).toString().padStart(2, "0"); //得到月份;day = '31' //console.log(2+"___"+year+"_"+month+"_"+day); } else if ((month == '04' || month == '06' || month == '09' || month == '11')&& day==30) {//小月year = now.getFullYear() + 1; //得到年份month = (now.getMonth()+ 1).toString().padStart(2, "0"); //得到月份;day = '30'//console.log(3+"___"+year+"_"+month+"_"+day);}else if ((year % 4 == 0 || year % 100 != 0 || year % 400 == 0)&& month=='02'&& day=='29') {//瑞年year = now.getFullYear() + 1; //得到年份month = (now.getMonth()+ 1).toString().padStart(2, "0"); //得到月份;day = '28'//console.log(4+"___"+year+"_"+month+"_"+day);} else if((year % 4 !=0)&& month=='02'&& day=='28'){//平年//console.log(5+"___"+year+"_"+month+"_"+day);year = now.getFullYear() + 1; //得到年份month = (now.getMonth()+ 1).toString().padStart(2, "0"); //得到月份;day = '28'}else {     year = now.getFullYear() + 1; //得到年份month = (now.getMonth() + 1).toString().padStart(2, "0"); //得到月份day = (now.getDate()).toString().padStart(2, "0"); //得到日期     }//console.log(6+"___"+year+"_"+month+"_"+day);return `${year}-${month}-${day}`;}

2、实现获取当前日期3个月后的日期;

/*** 获取3个月后的日期* @param */
function getThreeMonthsLaterDate(shao) {var currentDate = new Date(shao); // 获取当前日期var futureDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 3, currentDate.getDate()); // 获取三个月后的日期console.log(currentDate.getFullYear());console.log(currentDate.getMonth() + 1);console.log(currentDate.getDate());if((currentDate.getMonth() + 4 =='04' || currentDate.getMonth() + 4 =='06' || currentDate.getMonth() + 4 =='09') && currentDate.getDate()=='31'){console.log(1);return futureDate.getFullYear() + '-' + (futureDate.getMonth()) + '-' + '30';}else if(currentDate.getMonth() + 1 =='11' && currentDate.getDate()>='29'){console.log(2);return futureDate.getFullYear() + '-' + (futureDate.getMonth()) + '-' + '28';}// 返回三个月后的日期,格式为yyyy-mm-ddreturn futureDate.getFullYear() + '-' + (futureDate.getMonth() + 1) + '-' + futureDate.getDate();
}

实现过程:

  1. 添加自定义函数
    添加自定义函数
  2. 流程表单引用及功能实现
    在这里插入图片描述
http://www.hrbkazy.com/news/330.html

相关文章:

  • wordpress建的网站打开太慢软文外链购买平台
  • 合肥企业制作网站长沙seo外包优化
  • 网站建设和web前端一样吗做外贸有哪些网站平台
  • 个人 可以做社交网站今日中国新闻
  • 班级网站模板html微信推广费用一般多少
  • 湘潭seo公司选择24火星上海seo外包公司
  • 怎么把自己的网站放到百度上淄博网络推广公司哪家好
  • 玉溪企业网站建设公司学开网店哪个培训机构好正规
  • 做网站做图电脑需要什么配置app推广引流渠道
  • 合肥网站制作培训企业网络营销推广方案策划范文
  • 本科自考是什么意思seo关键词排名优化工具
  • 杭州seo排名收费深圳seo论坛
  • 南京网站建设公司哪家好怎么弄一个自己的网址
  • 国内永久免费的建站直播发布会
  • 买个域名后怎么做网站seo刷点击软件
  • 廊坊网站建设哪家权威百度指数的需求指数
  • wordpress 手机号注册关键词优化顾问
  • WordPress站点地图代码百度学术官网论文查重免费
  • 可以做fiting网站蜜雪冰城网络营销案例分析
  • 众展seo推广东莞seo外包
  • 辽宁省住房和城乡建设厅网站打不开seo排名的职位
  • 招聘网站建设人员条件网页设计与制作个人网站模板
  • 网站互动推广seo是怎么优化推广的
  • 正版搜索引擎优化企业网站建设优化
  • 网站开发 国际网站app推广实名认证接单平台
  • 营销型网站报价明细淘宝权重查询
  • 新闻网站运做重庆seo优化
  • 明月浩空WordPress马鞍山网站seo
  • 如何做一名合格的网站巡查人力资源培训网
  • 阜阳网站推广爱站站长工具