Problems with refresh function for page, in Appcelerator

前端 未结 2 1638
南旧
南旧 2021-01-14 17:21

Titanium SDK version: 1.6.1 iPhone SDK version: 4.2

I am using JavaScript.

I am developing an app that is fetching information from an API. In this app, on t

2条回答
  •  滥情空心
    2021-01-14 17:53

    TableView -

    table.setData([]); // First Clear

    table.setData(tableData); // Updated Content

    ListView -

    listView.sections[0].setItems([]);//First Clear

    listView.sections[0].setItems(tableData); // Updated Content

    For Updating Content inside Window you can use "open" listener.

    win.addEventListener("open",loadData);

提交回复
热议问题