问题描述
我正在使用 atlassia-python-api 的 Confluence 模块来创建一个页面 我想将 html 作为内容传递。是否可以为该 html 添加图像和引导 CDN?
这是我的代码
title = "test page"
content = """<table id="mytable">
<th>header1</th>
<th>header2</th>
<tr>
<td>R1C1</td>
<td>R2C2</td>
</tr>
<tr>
<td>R2C1</td>
<td>R2C2</td>
</tr>
</table>"""
Bootstrap_html = """<script>
$(document).ready(function(){
$('#myTable').dataTable();});
</script>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript"
src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>"""
content = bootstrap_html+content
confluence.create_page(SPACE,title,content,type=blogpost)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)