<script th:inline="javascript">
var params= [[${params}]];
</script>
参考链接:https://blog.csdn.net/fanpeizhong/article/details/80173452