从标准库导入Java

时间:2019-07-02 23:33:50

标签: java

让我说我想从java.util导入3个软件包 例如:

var oTable = new sap.m.Table({
    id: "UserTable",
    columns: [
        new sap.m.Column({
            header: new sap.m.Label({
                text: "User ID"
            })
        }),
        new sap.m.Column({
            header: new sap.m.Label({
                text: "Name"
            })
        })          
    ]
});

var template = new sap.m.ColumnListItem({
    type: "Active",
    visible: true,
    press: [oController.onItemPress, oController],
    cells: [
        new sap.m.Text({
            text: "{userList>Userid}"
        }),
        new sap.m.Text({
            text: "{userList>Name}"
        })
    ]
});

我只是想知道哪个选项更好?还是一样?我觉得第一种选择会更好,但是我不确定...

0 个答案:

没有答案