/*---------------------------

example

------------------------------*/

$.cssHooks.foo = {

get: function(elm, computed){

return $(elm).css('background-color');

},

set: function(elm, value){

$(elm).css('background-color', value);

}

}

 

$('#button-example').one('click', function(){

$('#div-demo-example').css({'foo': 'yellow'});

});

相关文章:

  • 2021-09-21
  • 2021-09-18
  • 2022-12-23
  • 2021-06-15
  • 2021-06-18
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-08-22
  • 2021-06-10
  • 2021-11-15
相关资源
相似解决方案