Jqueryのコールバック関数に変数を渡そうとしています
私は持っています:
var test;
$('.img').hover(function(){
test='this is test';
}, function (){
//how do I pass the test value to the callback function..??
console.log(test)
})
助けてくれてありがとう。
Jqueryのコールバック関数に変数を渡そうとしています
私は持っています:
var test;
$('.img').hover(function(){
test='this is test';
}, function (){
//how do I pass the test value to the callback function..??
console.log(test)
})
助けてくれてありがとう。