0
我在一些不寻常的情况。jQuery问题传递href在ajax调用
看看下面
HTML代码:
<a href="?productid=13&refer=1&opr=view" title="Click to view details or Mark as 'Featured Product'" id="product_13">Demo Product</a>
和我的jQuery代码看起来像
jQuery('a[id^="product_"]').bind("click", function(){
... calling ajax ... with following parameters ...
this.href
});
,并在服务器端,使用PHP,我得到的所有这些参数不同
$_GET['productid']=13
$_GET['refer']=1
$_GET['opr']=view
,但我需要得到单个字符串(?productid = 13 & refer = 1 & opr =查看),任何帮助球员?
感谢