在jsp中我有一行function getRowCount() {
// move line below
// $q = $this->db->get('equipment');
$where = "(archived<>'yes' AND (on_lot<>'yes' OR photographs_uploaded<>'yes') AND sold<>'yes') OR (archived<>'yes' AND sold='yes' AND (final_inspection<>'yes' OR jdlink2_registered<>'yes'))";
$this->db->where($where);
// Active record will now clear the WHERE cache after executing get
$q = $this->db->get('equipment');
$rowcount = $q->num_rows();
return $rowcount;
}
但我想从这个函数的app.js中读取它:
<c:if test="${suspensionInfo.suspended}">
是否可以这样做?