重寫了JS代碼后上下調整的箭頭不顯示,我在href引用了CSS庫,是不是在調用change屬性的時候代碼有誤,請高手幫忙看看?$(function?()?{??????
????????$("input").spinner({
????????????max:?10,
???? ????min:?0,
???? ????step:?1,
???? ????spin:function(event,ui){
???? if(ui.value==8){
???? spnPrev.style.backgroundColor?=?"red";
???? else
???? spnPrev.style.backgroundColor?=?"blue";
????
???? },
???? ????change:?function(event,ui){
???? var?intTmp?=?$(this).spinner("value");
???? if(intTmp?<?0)?$(this).spinner("value",0);
???? if(intTmp?>?10)$(this).spinner("value",10);
???? if(intTmp==8)
???? spnPrev.style.backgroundColor?=?"red";
???? else
???? spnPrev.style.backgroundColor?=?"blue";
???? }
????});
??});
為什么重寫了JS代碼后spinner的上下調整的箭頭不顯示
Reginald0419
2016-06-16 12:26:41