distchen / ddoc.js Goto Github PK
View Code? Open in Web Editor NEW用 JS 生成 word 文档
Home Page: https://distchen.github.io/DDoc.js/
License: Apache License 2.0
用 JS 生成 word 文档
Home Page: https://distchen.github.io/DDoc.js/
License: Apache License 2.0
利用文本框来显示代码块是一个不错的方式
生成表格的只有表头有值,从第二行开始单元格都是空的,不知道是不是我这边的问题,
下面是addTable()方法中传的参数。
[ ["参数名字", "类型", "是否必须", "默认值", "其他", "说明"], ["platform", "字符串", "是", "pc", "(app调用请传入app,移动端H5调用传入wechat)", "平台类型(公共参数)"], ["user_name", "字符串", "是", "无", "无", "用户名"], ["pass_word", "字符串", "是", "无", "无", "密码"] ]
设置这些属性只是在 xml 中添加上相应的属性即可,处理起来并不复杂,只要知道属性名称和值的格式即可处理。
IE浏览器不行
你好,请问一下,这里的word的样式设置,你是怎么做到的,现在我有一个需求就是要设置里边的一些元素的位置,就像你写到的设置的样式的这个样子,方便的话回复一下,谢谢
目前添加图片需要有图片的base64编码数据,还不能通过url来添加。纯前端无法通过url获取到图片的base64编码(利用Canvas会存在跨域的问题),可以自己写个后台来取base64编码。
目前添加的元素都独占一个段落,需要添加多种元素在一个段落的支持。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.