wordexport 插件生成word报告


导入wordexport插件

<script src="${ctx }/static/js/jquery.wordexport.js"
type="text/javascript"></script>
<script src="${ctx }/static/js/FileSaver.js" type="text/javascript"></script>

jq方法使用

jQuery(document).ready(function($) {
$("a.jquery-word-source").click(function(event) {   //添加点击事件
$("#sourceamodel").wordExport();    //事件来源id
});  
});

数据来源

<div class="row" id="sourceamodel">

</div>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM