1

早上好,我尝试了 w2ui 无限滚动的示例,但是通过添加属性:可编辑列会产生错误。有人能帮我吗 ?谢谢你。

<div id="main" style="width: 100%; height: 400px;"></div>
<br>

<script type="text/javascript">
// widget configuration
 var config = {
  grid: { 
    name: 'grid',
    url : 'getDati.php',
    autoLoad: false,
    show: { 
        footer    : true,
        toolbar    : true
    },
      columns: [                
            ...
    searchable: 'text', resizable: true, editable: { type: 'text' } },
           { field: 'date', caption: 'Date', size: '200px', resizable: true, 
     sortable: true, editable: { type: 'date', format: 'dd/mm/yyyy' }  }
        ]
   ...
   }
  };


      $(function () {
          $('#main').w2grid(config.grid);
      });
       </script>

    errore

        - Uncaught TypeError: Cannot read property 'w2ui' of undefined
        - at w2grid.dblClick (w2ui-1.5.rc1.js:6609)
        - at w2grid.click (w2ui-1.5.rc1.js:5928)
        - at HTMLTableRowElement.onclick (test.php:1)
4

0 回答 0