我想用https://github.com/nicolaskruchten/pivottable,基本上我想在表格中显示图像。我迄今为止所做的是;但它不会显示图像的img标签,而不是它认为它作为字符串pivottable在表格中显示html
<body>
<script type="text/javascript">
$(function(){
$("#output").pivotUI(
[
{product: "product1", image: "<img src='image1' alt='' height='42' width='42'>"},
{product: "product2", image: "<img src='image2' alt='' height='42' width='42'>"}
]
);
});
</script>
<p><a href="http://nicolas.kruchten.com/pivottable/examples/index.html">« back to examples</a></p>
<div id="output" style="margin: 10px;"></div>
</body>
现在这是一个支持的功能:) – nicolaskruchten 2015-01-08 12:40:21
我不得不遗憾的是去除支持此功能,毕竟,因为它创造了一个XSS安全漏洞。详情请参阅https://github.com/nicolaskruchten/pivottable/pull/401 – nicolaskruchten 2015-12-11 14:01:01