0

我在 jQuery mobile 中使用 fooTable jQuery 插件作为日期网格。我有我需要在表中填充的数据列表。最初使用过滤和单元格格式。首先,我想在表中填充数据。我正在使用外部 .js 文件来单独保存 JavaScript。

HTML5 代码,“$.App.initGridView”不是从“data-init”标签调用的。为什么它不起作用?

<div data-role="view"  data-title="Platform" onloadeddata="$.App.initGridView" data-init="$.App.initGridView">
        <table  class="footable table" id="my-table">
            <thead >
            <tr data-theme="b">
                <th >Ticket#</th>
                <th >Date</th>
                <th data-hide="phone">Operator Name</th>
                <th data-hide="phone">Lease Name</abbr></th>
                <th >Tank#</th>
            </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>

jQuery代码:

initGridView: function () {
         var rtList = $.App.tempDB.getTicketList();
         // I want to populate table here  
}
4

0 回答 0