Giter Site home page Giter Site logo

htmltopdf's Introduction

报告制作模板

基础框架

  • [email protected] : html 模板拼接
  • babel: ES6 转 ES5
  • sass: CSS 预编译
  • node: 前端构建
  • shell: 文件拷贝
  • tinypng.js: 压缩图片

长页面数据分页原理

初始化页面默认高度数据,获取子元素集合数组(无效数组) 新增一个高度自动的页面容器,使用(无效数组)数组集合填充,检查容器高度是否大于默认高度

小于,不作操作 || 大于,清空容器,向容器一个添加一个子元素(逐个),实时检查容器高度是否大于默认高度

大于,记录当前数组索引,分割数组=有效数组+无效数组

清空容器,使用(有效数组)数组集合填充

新增一个高度自动的页面容器,使用(无效数组)数组集合填充,检查容器高度是否大于默认高度 ······

htmltopdf's People

Contributors

peichenhu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.