var ab = $(this).attr("tumb");
var as = "$Site.url$class/view{suffix}?id="+ab;
$('p.gallery_list_index_he a').attr('href','"+as+"');
想把as赋值给href,但一直没成功,怎么写才是对的
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
$('p.gallery_list_index_he a').attr('href','+'+as+'+');
$('p.gallery_list_index_he a').attr('href',as);引号使用有误: