这段代码的含义是什么 [英] what is meaning of this code

查看:86
本文介绍了这段代码的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<script language="javascript"type="text/javascript">

function getData(context, distCode, talCode)
{
    window.location=  "displayDistTal.aspx?context="+context+"&distCode="+distCode+"&talCode="+talCode;
}

</script>

推荐答案

它只是重定向到页面 displayDistTal.aspx

查询字符串中的数据...

查询字符串中有三个数据 1)上下文2)distCode 3)talCode
It is just redirecting to page displayDistTal.aspx
with data in query string ...
there are three data in query string 1)context 2) distCode 3) talCode


window.location - this will take you to this URL "displayDistTal.aspx" with the same  window







"displayDistTal.aspx?context="+context+"&distCode="+distCode+"&talCode="+talCode; -its called querystring .
you can carry the distCode,talCode value to this page "displayDistTal.aspx" 


这篇关于这段代码的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆