看到这个问题,使用 js:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<a href="javascript:" flag="包邮">包邮</a>
<script type="text/javascript" src="http://static.takungpao.com/js/jquery.1.9.min.js"></script>
<script type="text/javascript">
$(function(){
var win_href=window.location.href,go_href,temp_zf
$("a").each(function(){
$(this).bind("click",function(){
var temp_text=$(this).attr("flag")
win_href.indexOf("?")>0?temp_zf="&":temp_zf="?"
go_href=win_href+temp_zf+temp_text
window.location.href=go_hrefreturn
})
})
})
</script>
</body>
</html>
$post_data_string = http_build_query($post_data, '&')$ch = curl_init()
curl_setopt($ch, CURLOPT_URL, $get_session_url)
curl_setopt($ch, CURLOPT_POST, 1)
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data_string)
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1)
$xmloutput = curl_exec($ch)
一般这样写 你自己对比下
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)