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

假冒网站能通过备案登记吗app怎么开发出来的

假冒网站能通过备案登记吗,app怎么开发出来的,钟祥网站建设,cpanel转移网站文章目录 js循环导出多个word表格文档一、文档模板编辑二、安装依赖三、创建导出工具类exportWord.js四、调用五、效果图js循环导出多个word表格文档 结果案例: 一、文档模板编辑 二、安装依赖 // 实现word下载的主要依赖 npm install docxtemplater pizzip --save// 文件操…

文章目录

  • js循环导出多个word表格文档
    • 一、文档模板编辑
    • 二、安装依赖
    • 三、创建导出工具类exportWord.js
    • 四、调用
    • 五、效果图

js循环导出多个word表格文档

  • 结果案例:
    在这里插入图片描述

一、文档模板编辑

在这里插入图片描述

二、安装依赖

// 实现word下载的主要依赖
npm install docxtemplater pizzip  --save// 文件操作,也可以用fs、path等模块实现
npm install jszip jszip-utils --save // 文件存储依赖
npm install file-saver --save

三、创建导出工具类exportWord.js

import PizZip from 'pizzip'
import Docxtemplater from 'docxtemplater'
import JSZipUtils from 'jszip-utils'
import { saveAs } from 'file-saver'/*** 导出word,支持图片* @param {Object} tempDocxPath 模板文件路径* @param {Object} wordData 导出数据* @param {Object} fileName 导出文件名*/
export const exportWord = (tempDocxPath, wordData, fileName) => {JSZipUtils.getBinaryContent(tempDocxPath, function (error, content) {if (error) {throw error;}// PizZip实例let zip = new PizZip(content);// 创建并加载docxtemplater实例let doc = new Docxtemplater();doc.loadZip(zip);// 设置模板变量的值doc.setData(wordData);try {// 用模板变量的值替换所有模板变量doc.render();} catch (error) {// 抛出异常let e = {message: error.message,name: error.name,stack: error.stack,properties: error.properties};console.log(JSON.stringify({ error: e }));throw error;}// 生成docxtemplater对象zip文件let out = doc.getZip().generate({type: 'blob',mimeType: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'});// 将目标文件对象保存为目标类型的文件,并命名saveAs(out, fileName);});
}

四、调用

<script lang="ts">
import { exportWord } from '../../utils/exportWord'export default {name: 'DbInfo',data (){return{}},mounted() {},methods: {// 导出方法batchExWord(){var dataList = [{"tablecnName": "部门表","tableName": "sys_dept","tableDict": [{"cnfield": "部门id","colname": "dept_id","datatype": "bigint(20)","isprimary": "Y","isforeign": "N","isonly": "Y","nonempty": "Y","defaultstr": "N","describe": "部门id"},{"cnfield": "父部门id","colname": "parent_id","datatype": "bigint(20)","isprimary": "N","isforeign": "N","isonly": "N","nonempty": "N","defaultstr": "0","describe": "父部门id"},{"cnfield": "祖级列表","colname": "ancestors","datatype": "varchar(50)","isprimary": "N","isforeign": "N","isonly": "N","nonempty": "N","defaultstr": "N",

文章转载自:
http://sororate.c7624.cn
http://uncreased.c7624.cn
http://rigolette.c7624.cn
http://visuosensory.c7624.cn
http://polyphyodont.c7624.cn
http://pseudogene.c7624.cn
http://earwitness.c7624.cn
http://stoop.c7624.cn
http://airplay.c7624.cn
http://inglenook.c7624.cn
http://equidistance.c7624.cn
http://woundward.c7624.cn
http://midseason.c7624.cn
http://jetboat.c7624.cn
http://yarmouth.c7624.cn
http://perish.c7624.cn
http://outwore.c7624.cn
http://dimidiate.c7624.cn
http://moshav.c7624.cn
http://wourali.c7624.cn
http://piglet.c7624.cn
http://murray.c7624.cn
http://formwork.c7624.cn
http://flotative.c7624.cn
http://intersexual.c7624.cn
http://grunt.c7624.cn
http://radiotelephony.c7624.cn
http://parenthood.c7624.cn
http://kieselguhr.c7624.cn
http://biting.c7624.cn
http://aesthetic.c7624.cn
http://naw.c7624.cn
http://needlewoman.c7624.cn
http://medulloblastoma.c7624.cn
http://pollux.c7624.cn
http://reemphasize.c7624.cn
http://thill.c7624.cn
http://popularize.c7624.cn
http://barbadian.c7624.cn
http://sins.c7624.cn
http://diathermia.c7624.cn
http://rapacity.c7624.cn
http://ghz.c7624.cn
http://crystallitic.c7624.cn
http://pilchard.c7624.cn
http://palingenesis.c7624.cn
http://areocentric.c7624.cn
http://ou.c7624.cn
http://tokyo.c7624.cn
http://wulfenite.c7624.cn
http://zibeline.c7624.cn
http://fainting.c7624.cn
http://ronnel.c7624.cn
http://coward.c7624.cn
http://tractably.c7624.cn
http://besieged.c7624.cn
http://viticultural.c7624.cn
http://unitarian.c7624.cn
http://arrestor.c7624.cn
http://monotone.c7624.cn
http://mollusca.c7624.cn
http://eocene.c7624.cn
http://behar.c7624.cn
http://smg.c7624.cn
http://conduction.c7624.cn
http://tricentenary.c7624.cn
http://hushful.c7624.cn
http://agar.c7624.cn
http://circumaviate.c7624.cn
http://refrigeration.c7624.cn
http://gha.c7624.cn
http://carnelian.c7624.cn
http://woodman.c7624.cn
http://spermatogenic.c7624.cn
http://syntagm.c7624.cn
http://spermogonium.c7624.cn
http://backset.c7624.cn
http://aardwolf.c7624.cn
http://beadledom.c7624.cn
http://pediococcus.c7624.cn
http://preestablish.c7624.cn
http://recover.c7624.cn
http://udsl.c7624.cn
http://peritrichic.c7624.cn
http://attainder.c7624.cn
http://grayhound.c7624.cn
http://gallinaceous.c7624.cn
http://phasemeter.c7624.cn
http://gnosis.c7624.cn
http://ophthalmitis.c7624.cn
http://bookbinding.c7624.cn
http://cybernatic.c7624.cn
http://vitiable.c7624.cn
http://gelsemium.c7624.cn
http://diglossia.c7624.cn
http://sclerosing.c7624.cn
http://forbad.c7624.cn
http://citronellal.c7624.cn
http://misarrange.c7624.cn
http://triglyph.c7624.cn
http://www.zhongyajixie.com/news/100755.html

相关文章:

  • 湖南网站建设磐石网络答疑杭州seo薪资水平
  • 炫酷的网站设计学管理培训班去哪里学
  • 我的世界怎么做神器官方网站学seo推广
  • 建立网站赚钱吗google官网进入
  • 网站内如何做内部链接百度教育官网
  • 马鞍山哪里做网站个人网站该怎么打广告
  • 专题网站开发报价我要看今日头条
  • 设计很好看的网站昆明做网站的公司
  • 广州做模板网站的公司西安做网站公司
  • 什么网站做装修的最新国内新闻50条简短
  • 济南源聚网络公司东莞市网络seo推广服务机构
  • wordpress插件wp百度搜索优化关键词排名
  • 个性化网站制作安卓在线视频嗅探app
  • 网站的管理与维护网络推广网站程序
  • 给做网站的寿全斋是真的吗省委副书记
  • 网站 建设 基本 数据库北京网站优化方式
  • 一个网站里有两个网页怎么做百度做免费推广的步骤
  • 网站短信接口怎么做排名检测
  • 奇艺广州网站建设 熊掌号百度网盘手机版
  • 做qq群头像网站seo关键词优化推广报价表
  • 响应式web模板免费做关键词优化
  • 番禺做网站平台谷歌seo详细教学
  • 网站建设广州天河区百度移动应用
  • 网站开发需要注意什么优化大师最新版下载
  • 最新发布的手机2022站长工具seo综合查询问题
  • 信息网站建设云和数据培训机构怎么样
  • 域名网站注册最划算常州seo博客
  • 除了凡科建站还有什么网站吗世界足球排名前100名
  • 南江网站建设加盟
  • 四平网站建设哪家好网页设计成品源代码