格式化代码
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<link href="./css/index.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="./css/index.css" rel="stylesheet" type="text/css" />
|
||||
<script src="./js/index.js"></script>
|
||||
<title>基于jQuery的AJAX实现三级联动菜单</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<form>
|
||||
@@ -26,24 +28,25 @@
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
$(function(){
|
||||
$(function () {
|
||||
getCountry();
|
||||
|
||||
$("#province").change(function(){
|
||||
CountryId=$("#province").val();
|
||||
|
||||
$("#province").change(function () {
|
||||
CountryId = $("#province").val();
|
||||
// console.log(FatherId);
|
||||
getCity(CountryId);
|
||||
CityID=$("#city").val();
|
||||
CityID = $("#city").val();
|
||||
// console.log(CityID);
|
||||
getArea(CityID);
|
||||
|
||||
|
||||
});
|
||||
$("#city").change(function(){
|
||||
CityID=$("#city").val();
|
||||
$("#city").change(function () {
|
||||
CityID = $("#city").val();
|
||||
// console.log(CityID);
|
||||
getArea(CityID);
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user