Coder Social home page Coder Social logo

ejsexcel's Introduction

nodejs excel template engine. node export excel, ejsExcel

npm install ejsexcel

执行 test/test.bat  进行测试
test/test.xlsx为完整示例
       	   <%forRow 循环一行
		    	<%# 输出动态公式
		    	<%~ 输出数字类型格式
		    	<%= 输出字符串
	  	  <%forCell 循环单元格
		<%forRBegin 循环多行
		<%forCBegin 循环多个单元格
  <%_hideSheet_()%> 隐藏所在工作表
<%_deleteSheet_()%> 删除所在工作表

	此外: <% %>内部可执行 任意 javascript, 注意是 **任意**
          _data_为内置对象, 数据源
	比如: 可以用<%console.log(_data_)%>
         打印临时变量到控制台,进行调试

====

auto: Sail  
QQ: 151263555  
QQ群: 470988427  
email: [email protected] 

模板:

模板

加数据渲染之后,导出结果:

导出结果

捐赠鼓励支持此项目:

捐赠鼓励支持此项目

项目贡献人列表:

  • @Hello World~    50元
  • @德爾文    50元

ejsexcel's People

Contributors

bryant1410 avatar cangzhen avatar ghost141 avatar sail-sail avatar sylarlong avatar

Stargazers

 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.