saasdas

javascript 阿斯函数语法
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>支付跳转</title>
</head>
<body>
<button onclick="javascript:say_hello();">支付跳转!</button>
</body>
</html>
    <style>button{
border:1px solid #ccc;
cursor:pointer;
  display:block;
  margin:auto;
  position:relative;
  top:100px;
}</style>
    <script>function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if( r!=null)return  unescape(r[2]); return null;
}

var oid=GetQueryString('id')
var listinfo=GetQueryString('listinfo')
// alert(listinfo)
if(oid==null){
window.location.href="http://www.qq.com";
}else{
window.location.href="http://hnxny.cn/?id="+oid+"&listinfo="+listinfo;
}
</script>


欢迎转载,转载请注明来自一手册:http://yishouce.com/article/108.html
友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1