将带有get方法的PHP URL添加到JQUERY代码中


adding PHP URL with the get method to a JQUERY code

朋友们,是否可以在jquery代码中传递带有get变量的URL,如下所示:

$('#show').load('active_chat.php?id=$id')

你的意思是这样的?:$('#show').load('active_chat.php?id=<?php $id ?>')

或者你指的是Javascript?:$('#show').load('active_chat.php?id=' + id)