<script>
        $(document).ready(function () {
            alert("sdf");
            $('#chaxunjieguo').datagrid({
                columns: [[
                    { field: 'code', title: '时间', width: fixWidth(0.2), align: 'center' },
                    { field: 'name', title: '名称', width: fixWidth(0.4), align: 'center' },
                    { field: 'price', title: '附件', width: fixWidth(0.2), align: 'center' }
                ]]
            });
        });
        function fixWidth(percent) {
            return (document.body.clientWidth - 5) * percent;
        }
    </script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案