我试图显示是否选中了复选框,仍然使用离子2中的<div class="checkbox">
<ion-checkbox color="primary" checked="{{property.alarmSystem}}" [(ngModel)]="store.checked"></ion-checkbox><p>Pantry / Store</p>
</div><!-- /.checkbox-->
从复选框发送输入,下面是我的代码。
[(ngmodel)]
即使复选框的值假设为true,它也不会显示任何内容,但是当我删除 String select = "SELECT project_id FROM project WHERE project_key = ?";
PreparedStatement preparedStatement1 = con.prepareStatement(select);
preparedStatement1.setString(1, project_key);
ResultSet rs = preparedStatement1.executeQuery();
int project_id = 0;
while(rs.next()) {
project_id = rs.getInt("project_id");
}
System.out.println(project_id);
时,一切都很好。请问我的错误是什么?