js的
参考网址:http://wwwdd2315.blog.163.com/blog/static/66661889201010885110787/
http://www.w3school.com.cn/jsref/jsref_decodeURI.asp
引用
location.search是从当前URL的?号开始的字符串
如:http://www.51js.com/viewthread.php?tid=22720
它的search就是?tid=22720
<script type="text/javascript">
$(function () {
var search = decodeURI(window.location.search);
//alert(search);
var info = search.split('&');
$("#spanOrderNo").text(info[0].split('=')[1]);
$("#spanSceneryName").text(info[1].split('=')[1]);
$("#spanDate").text(info[2].split('=')[1]);
$("#spanNum").text(info[3].split('=')[1]);
$("#spanPrice").text(info[4].split('=')[1]);
});
</script>