81,091
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class='csdn-bbs'>
<head>
<meta http-equiv="Cache-Control" content="no-transform" />
<link rel="alternate" media="handheld" href="#" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>求大神解答一个关于Js的问题-CSDN论坛</title>
<meta content="authenticity_token" name="csrf-param" />
<meta content="7XaGUuyAoihkUDgqp3Nka02emeBK0mfSWfzUvJPx7vc=" name="csrf-token" />
<script type="text/javascript">
var villCode = "";
var villName = "";
var villHieraechy = 0;
function selectTwo(id,vname,vhieraechy) {
alert("selectTwo-->villName:"+villName); // 这里面是有值的。
alert("selectTwo-->villCode:"+villCode);
villCode = id;
villName = vname;
villHieraechy = vhieraechy;
}
function gitValue() {
alert("gitValue-->villName:"+villName);
alert("gitValue-->villCode:"+villCode);
}
alert(1);
selectTwo("1","vname","vhieraechy");
gitValue();
</script>
</head>
<body id='topics-show'>
</body>
</html>