在jQuery url上轻松修改

时间:2011-11-14 05:41:48

标签: javascript jquery

在以下网址中我还要包含&id=<?php echo $id; ?> 我该怎么办?

url: "loadmore.php?lastid=" + $(".postitem:last").attr("id"),

1 个答案:

答案 0 :(得分:1)

url: "loadmore.php?lastid=" + $(".postitem:last").attr("id") + "&id=<?php echo $id; ?>",