我有这样的函数...我试图使用变量插入一个类名gotValue.我如何在jQuery中传递它?我在if子句中尝试过,但它没有用.
function fullData(gotValue)
{
alert(gotValue);
var count = gotvalue.substring(9);
if($('.'+gotValue+'').is(':checked'))
{
alert('working');
}
}
Run Code Online (Sandbox Code Playgroud)