我并不知道底层代码 我想像get传值那样 .do?name="参数名" 有什么代码可以实现么?
用表单(method="POST")或者ajax,指定提交方式为post
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js"></script>
<script>
$.ajax({ url: 'xxx.do', data: { name: 'xxxx' }, type: 'POST', complete: function (xhr) { alert('服务器返回:'+xhr.responseText)}})
</script>
实际方式很简单,关键要看后端使用的是什么框架