在文档中提到以下内容:
Account account = accountDao.queryForId("John Smith");
if (account == null) {
// the name "John Smith" does not match any rows
}
Run Code Online (Sandbox Code Playgroud)
但在Eclipse(android)中我只看到传递整数作为参数的选项?任何帮助?
我有以下情况:
JSON:
[{"id":1,"prio":3},
{"id":2,"prio":3},
{"id":3,"prio":3},
{"id":4,"prio":4},
{"id":5,"prio":2}]
Run Code Online (Sandbox Code Playgroud)
HTML /角
<ul ng-repeat>
<li class="high">{{id}}</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
现在我的目标是根据属性'prio'自动更改css类.
When prio = 1 --> css= "low"
when prio = 2 --> css = "medium"
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?