我在XSL文件中包含此脚本。我在设置千位和十进制分隔符时遇到问题。我尝试添加“语言”选项,然后添加“千”和“十进制”,但是它不起作用, 预先感谢您的帮助
<script type="text/javascript">
<xsl:text>
var t1 = $(document).ready(function() {
$('#table1').DataTable( {
"scrollY": "400px",
"scrollCollapse": true,
"paging": false,
"scrollX": true,
fixedColumns: {
leftColumns: 3
}
} );
} );
var t2 = $(document).ready(function() {
$('#table2').DataTable( {
"language": {
"url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/Polish.json"
}
"scrollY": "400px",
"scrollCollapse": true,
"paging": false,
"scrollX": true
} );
} );
</xsl:text>
</script>