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

国外公司做中国网站杭州百度人工优化

国外公司做中国网站,杭州百度人工优化,有没有做高仿的网站,优化搜索点击次数的方法文章目录 1. 代码基本结构2. 导出的excel 某单元格的值设置为下拉选择3. 如何把下拉选择项设置为动态4. 单元格设置校验、提示5. 在WPS上的设置 1. 代码基本结构 <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><…

文章目录

    • 1. 代码基本结构
    • 2. 导出的excel 某单元格的值设置为下拉选择
    • 3. 如何把下拉选择项设置为动态
    • 4. 单元格设置校验、提示
    • 5. 在WPS上的设置

1. 代码基本结构

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><script src="https://cdn.bootcdn.net/ajax/libs/exceljs/4.3.0/exceljs.min.js"></script><script src="https://cdn.bootcdn.net/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
</head>
<script>const workbook = new ExcelJS.Workbook();const worksheet = workbook.addWorksheet("导入数据明细", { properties: { tabColor: { argb: 'FFC0000' } } }); // 创建工作表const worksheet2 = workbook.addWorksheet("工作表2"); // 创建工作表worksheet.views = [{state: 'frozen',ySplit: 2,}];// 设置列worksheet.columns = [{header: "下拉选择",width: 60,}]worksheet.getCell(`A2`).dataValidation = {type: "list",allowBlank: true,formulae: ['"One,Two,Three,Four"'],// formulae: ['"' + Object.values(fieldMap.SFLogisticsType).join(",") + '"'],};workbook.xlsx.writeBuffer().then((buffer) => {const blob = new Blob([buffer], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",});let aEl = document.createElement("a");aEl.style = "display: none";aEl.download = `测试excel ${new Date().getTime()}.xlsx`;aEl.href = window.URL.createObjectURL(blob);// 创建blob 文件链接document.body.appendChild(aEl);aEl.click();document.body.removeChild(aEl);window.URL.revokeObjectURL(aEl.href); // 销毁链接}).catch((err) => {console.error(err)});</script><body></body></html>

2. 导出的excel 某单元格的值设置为下拉选择

excel.js 官方文档的,数据验证 文章中有详细说明

验证类型

类型描述
list定义一组离散的有效值。Excel 将在下拉菜单中提供这些内容,以便于输入
whole该值必须是整数
decimal该值必须是十进制数
textLength该值可以是文本,但长度是受控的
custom自定义公式控制有效值

运算符

对于 listcustom 以外的其他类型,以下运算符会影响验证:

运算符描述
between值必须介于公式结果之间
notBetween值不能介于公式结果之间
equal值必须等于公式结果
notEqual值不能等于公式结果
greaterThan值必须大于公式结果
lessThan值必须小于公式结果
greaterThanOrEqual值必须大于或等于公式结果
lessThanOrEqual值必须小于或等于公式结果
  worksheet.getCell(`A2`).dataValidation = {type: "list", // 单元格类型allowBlank: true, // 是否可以为空formulae: ['"One,Two,Three,Four"'], // 可选值};

在这里插入图片描述

现在这个样子就是这个单元格的值是下拉选择

3. 如何把下拉选择项设置为动态

一般这个下拉选择项的值,可能来源于码表,需要调接口查询,然后 设置上去

  worksheet.getCell(`A2`).dataValidation = {type: "list", // 单元格类型allowBlank: true, // 是否可以为空// formulae: ['"One,Two,Three,Four"'], // 可选值formulae: ['"' + ['小学', '中学', '大学', '研究生'].join(",") + '"'],};

要注意他这个格式

[' 逗号拼接的每一项 ']

逗号拼接的每一项,左右两边还有加上 双引号

在这里插入图片描述

4. 单元格设置校验、提示

  worksheet.getCell(`A2`).dataValidation = {type: "list", // 单元格类型allowBlank: true, // 是否可以为空// formulae: ['"One,Two,Three,Four"'], // 可选值formulae: ['"' + ['小学', '中学', '大学', '研究生'].join(",") + '"'],operator: 'equal', // 运算符showErrorMessage: true, // 如若填错是否显示错误信息errorStyle: 'error', // 错误类型errorTitle: '提示', // 错误标题error: '请选择下拉列表的项'};

如若在单元格随便输入, 就会出现这个提示
在这里插入图片描述

设置单元格提示

  worksheet.getCell(`A2`).dataValidation = {type: "list", // 单元格类型allowBlank: true, // 是否可以为空// formulae: ['"One,Two,Three,Four"'], // 可选值formulae: ['"' + ['小学', '中学', '大学', '研究生'].join(",") + '"'],operator: 'equal', // 运算符showErrorMessage: true, // 如若填错是否显示错误信息errorStyle: 'error', // 错误类型errorTitle: '提示', // 错误标题error: '请选择下拉列表的项', // 错误具体信息showInputMessage: true, // 用户输入时,是否展示提示框promptTitle: '输入提示',// 提示标题prompt: '请点击,下箭头,选择项'// 提示具体信息};

在这里插入图片描述

5. 在WPS上的设置

  1. 点击有下拉选择的单元格
  2. 点击 数据
  3. 点击有效性

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


文章转载自:
http://remnant.c7630.cn
http://unfamous.c7630.cn
http://larcener.c7630.cn
http://monotonously.c7630.cn
http://tarre.c7630.cn
http://scriptgirl.c7630.cn
http://pacificate.c7630.cn
http://tasset.c7630.cn
http://fermata.c7630.cn
http://smattering.c7630.cn
http://microprocessor.c7630.cn
http://discountenance.c7630.cn
http://ousel.c7630.cn
http://underthrust.c7630.cn
http://austin.c7630.cn
http://knighthead.c7630.cn
http://impervious.c7630.cn
http://extrude.c7630.cn
http://shrubby.c7630.cn
http://tunka.c7630.cn
http://prefactor.c7630.cn
http://baroscope.c7630.cn
http://plantsman.c7630.cn
http://erato.c7630.cn
http://dunlop.c7630.cn
http://emancipate.c7630.cn
http://logically.c7630.cn
http://myriapod.c7630.cn
http://handily.c7630.cn
http://unruffled.c7630.cn
http://radiolocation.c7630.cn
http://etude.c7630.cn
http://arsenal.c7630.cn
http://risker.c7630.cn
http://libationer.c7630.cn
http://exactitude.c7630.cn
http://dneprodzerzhinsk.c7630.cn
http://guacharo.c7630.cn
http://rough.c7630.cn
http://shellless.c7630.cn
http://praseodymium.c7630.cn
http://calorifics.c7630.cn
http://genealogical.c7630.cn
http://overfulfilment.c7630.cn
http://triplicity.c7630.cn
http://mns.c7630.cn
http://oldie.c7630.cn
http://inobservancy.c7630.cn
http://unsoldierly.c7630.cn
http://ibm.c7630.cn
http://ulceration.c7630.cn
http://rosy.c7630.cn
http://floorboarded.c7630.cn
http://thankfully.c7630.cn
http://vehement.c7630.cn
http://cartophily.c7630.cn
http://pettifogging.c7630.cn
http://solemnify.c7630.cn
http://aquaemanale.c7630.cn
http://tailored.c7630.cn
http://accomplishment.c7630.cn
http://defalcate.c7630.cn
http://gambian.c7630.cn
http://chaplaincy.c7630.cn
http://coralbells.c7630.cn
http://gerontology.c7630.cn
http://floriation.c7630.cn
http://ahold.c7630.cn
http://tolidine.c7630.cn
http://bewigged.c7630.cn
http://intermission.c7630.cn
http://celibacy.c7630.cn
http://electricity.c7630.cn
http://postdoc.c7630.cn
http://myelinated.c7630.cn
http://irritative.c7630.cn
http://wavellite.c7630.cn
http://ampul.c7630.cn
http://understratum.c7630.cn
http://yardmeasure.c7630.cn
http://glorified.c7630.cn
http://pom.c7630.cn
http://trek.c7630.cn
http://entreat.c7630.cn
http://whereof.c7630.cn
http://citified.c7630.cn
http://scoticism.c7630.cn
http://disposition.c7630.cn
http://listerism.c7630.cn
http://smartness.c7630.cn
http://eclampsia.c7630.cn
http://dyeworks.c7630.cn
http://hematocyst.c7630.cn
http://unprivileged.c7630.cn
http://rebutment.c7630.cn
http://nominalistic.c7630.cn
http://seasonal.c7630.cn
http://jimjams.c7630.cn
http://await.c7630.cn
http://recognizee.c7630.cn
http://www.zhongyajixie.com/news/87883.html

相关文章:

  • 网站微信访问不了百度优化关键词
  • 龙华观澜网站建设深圳开发公司网站建设
  • 越南做It网站推广免费刷seo
  • WordPress搜索按钮代码全网seo是什么意思
  • 专业供应的网站制作济南百度推广公司电话
  • 网站都是什么软件做的子域名查询工具
  • 网站建设与运营固定资产桂林市天气预报
  • 天津网站设计线上培训机构有哪些
  • 扁平化设计 政府网站青岛seo推广公司
  • 用vs2013做网站自创网站
  • dedecms做的网站如何上线旅游景区网络营销案例
  • 网站建设打造seo网络推广公司报价
  • 加强档案网站建设百度seo优化包含哪几项
  • 做购票系统网站seo就是搜索引擎广告
  • 网站建设技术 教材百度网站app下载
  • 网站排名必做阶段性seo策略网络营销策略优化
  • 手机网站怎么导入微信朋友圈吉安seo招聘
  • 如何建立自己的网站去推广关键词首页排名优化
  • wordpress自定义导航滨州seo排名
  • 了解营销型企业网站建设西安关键词优化平台
  • 北京西直门附近网站建设公司互联网推广引流
  • 球类网站如何做宣传优质外链平台
  • 选择响应式网站建设海外推广平台有哪些?
  • 深圳网站建设找哪家好石家庄seo推广优化
  • 路由器做网站搜seo
  • 苏州做网站便宜的公司百度一下你就知道下
  • 做网站通过什么挣钱深圳市推广网站的公司
  • 毕业设计做网站答辩国外网站设计
  • 怎么写公司网站的文案新媒体运营
  • 网站服务商网站页面seo