求帮忙看看,怎么一直报错

两仪式啃西瓜 两仪式啃西瓜 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cityTest.aspx.cs" Inherits="DTcms.Web.admin.city.cityTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>城市</title>
<script type="text/javascript" src="../../scripts/jquery/jquery-1.10.2.min.js"></script>

<script type="text/javascript">
function GetCityInfo(proId, level) {
$.ajax({
type: "GET",
url: "../../tools/city_ajax.ashx?type=GetCityInfo" + "&proId=" + proId + "&level=" + level,
data: "",
beforeSend: function () { },
success: function (msg) {
switch (level) {
case 1:
$("#spCity").html(msg);
break;
default:
break;
}

},
error: function () { alert("有问题,改改试试"); },
complete: function () { }
});
}
function ChangeSelect(proId, name) {
switch (name) {
case "<%=ddlProvince.ClientID%>":
GetCityInfo(proId, 1);
break;
default:
break;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<span id="spProvince">
<asp:DropDownList ID="ddlProvince" runat="server" onchange="ChangeSelect(this.options[this.selectedIndex].value,this.name)" >
</asp:DropDownList>
</span>
<span id="spCity">

</span>
</div>
</form>
</body>
</html>
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
两仪式啃西瓜
C# 111,128 成员 642,536 内容