我有一个点击事件,在事件处理程序中有一个假设返回字符串值的函数
例如:
$('.customDropDownList li').click(function(){
var yourCurrentSeasonSelection = selectionReplaced(this);
//return var yourCurrentSeasonSelection from here.
});
function selectionReplaced(refT){
var valueRegistered = $(refT).find("a[href]").attr('href').replace('#', '');
....
return valueRegistered;
}
单击 yourCurrentSeasonSelection 变量后如何获取返回值?