js中在url地址传递某个值到页面去

这里我传递的时id值,通过id值来查找信息:

var id = postData['id'];
   "/shequ/index.php?m=house&c=information&a=index&id="+id  //用这样的形形式来拼接即可

猜你喜欢

转载自blog.csdn.net/qq_37982109/article/details/86239148