Docx模板引擎示例

<script type="text/javascript" src="http://www.xdocin.com/xdoc.js"></script>
<script type="text/javascript">
XDoc.run("http://www.xdocin.com/DocxEngine.docx", "docx",
{"單行文本": "你好!","多行文本": "一行\n兩行\n三行","圖片": "http://www.xdocin.com/xdoc.png",
"HTML": "<html><li>張小三</li><li>李小四</li><li>王小五</li></html>",
"URL地址": "text:http://www.baidu.com","文檔": "http://www.xdocin.com/xdoc?_func=hi&_rformat=html",
"公司": "名稱,徽標,市值\n"
	+ "騰訊,http://www.logoquan.com/upload/list/20130417/logoquan13669788062.GIF,3000\n"
	+ "阿里巴巴,http://www.logoquan.com/upload/list/20140422/logoquan14047241987.GIF,2900\n"
	+ "百度,http://www.logoquan.com/upload/list/20130416/logoquan13691011633.GIF,600"
}, "_blank");
</script>
相關文章
相關標籤/搜索