控件1:
代码如下:
<input dojoType="dijit.form.NumberSpinner" value="1" smallDelta="1" style="width:80px;" constraints="{min:1,max:10,places:0}" id="integerspinner2" name="someNumber" />
控件2:
初始样式:
单击后变为这个样子:
同样有输入验证:
<span id="myMuberSpinner" dojoType="dijit.InlineEditBox" editor="dijit.form.NumberSpinner" editorParams="{constraints: {places:0} }" width="170px" title="quantity"> 15 </span> <a href="#" mce_href="#" onclick=javascript:alert(dojo.byId("myMuberSpinner").innerHTML)>显示数值</a>