粘贴就能运行
<!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">
<title>Document</title>
</head>
<style>
select {
width: 100px;
}
</style>
<body>
<select name="" id="sele1" onclick="fun1()">
<option value="">--请选择省份--</option>
</select>
<select name="" id="sele2">
<option value="">--请选择省份--</option>
</select>
</body>
</html>
<script>
//创建城市对象
var city = {
"河北省": ["石家庄市", "秦皇岛市", "保定市", "邯郸市", "衡水市", "唐山市