這樣為啥沒效果?
$("#test3").on({ ????????mousedown:?function(){ ????????????$(this).css("background","red"); ????????} ????????mouseup:?function(){ ????????????$(this).css("background","green");?????? ????????????} ???????? ????})
?
$("#test3").on({ ????????mousedown:?function(){ ????????????$(this).css("background","red"); ????????} ????????mouseup:?function(){ ????????????$(this).css("background","green");?????? ????????????} ???????? ????})
?
2016-12-11
舉報(bào)
2016-12-11
兩個(gè)對(duì)象之間缺了一個(gè)逗號(hào)
$("#test3").on({
?
????????mousedown:?function(){
?
????????????$(this).css("background","red");
?
????????},
?
????????mouseup:?function(){
?
????????????$(this).css("background","green");??????
?
????????????}
?
?????????
?
????})
2016-12-11
特意新建了個(gè)demo測(cè)試了下。。
2016-12-11
說錯(cuò)了是對(duì)象的兩個(gè)屬性之間缺了逗號(hào) ?忘采納