有这个代码:
$(".toggle", '.Div1').on('click',function ()
{
alert("I was clicked becuase im .toggle is under the context of _________");
});
我需要获取$(this)值所在的上下文。
我怎样才能得到 的价值 _______?
有这个代码:
$(".toggle", '.Div1').on('click',function ()
{
alert("I was clicked becuase im .toggle is under the context of _________");
});
我需要获取$(this)值所在的上下文。
我怎样才能得到 的价值 _______?