我想在可滚动的列表中显示数据。我得到了 Web 服务响应,并得到了一份 BlackBerry 支持表单来滚动数据。但我想在 web 服务调用之后实现这个。
对于滚动,我使用了这个:
<div class="scroll-pane" id="mainBodyDiv">
<ul x-blackberry-focusable="true">
<li x-blackberry-focusable="true" id="1" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> a</li>
<li x-blackberry-focusable="true" id="2" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> b</li>
<li x-blackberry-focusable="true" id="3" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> c</li>
<li x-blackberry-focusable="true" id="4" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> d</li>
<li x-blackberry-focusable="true" id="5" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> d</li>
<li x-blackberry-focusable="true" id="6" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> e</li>
<li x-blackberry-focusable="true" id="7" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> f</li>
<li x-blackberry-focusable="true" id="8" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> g</li>
<li x-blackberry-focusable="true" id="9" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> g</li>
<li x-blackberry-focusable="true" id="11" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> a</li>
<li x-blackberry-focusable="true" id="12" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> b</li>
<li x-blackberry-focusable="true" id="13" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> c</li>
<li x-blackberry-focusable="true" id="14" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> d</li>
<li x-blackberry-focusable="true" id="15" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> d</li>
<li x-blackberry-focusable="true" id="16" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> e</li>
<li x-blackberry-focusable="true" id="17" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> f</li>
<li x-blackberry-focusable="true" id="18" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> g</li>
<li x-blackberry-focusable="true" id="19" x-blackberry-onUp="scroll()" x-blackberry-onDown="scroll()"> g</li>
</ul>
但是,如果我想在 Web 服务调用之后在列表中打印 10 个数字(例如)怎么办?