标题
html## 标题
<script type="module">
import QueryString from "../js/QueryString.js";
var citiesId, countiesID, id, perform, Plist,arr6 =[] ,arr5 = [], arr1 = [], arr2 = [], arr3 = [], arr4 = [];
init();
function init() {
ajax("province")
}
function ajax(type, data) {
if (data === undefined) data = "";
data = QueryString.stringify(data);
var xhr = new XMLHttpRequest();
xhr.addEventListener("load", loadHanlder);
xhr.open("GET", "http://10.9.72.249:4900/" + type + "/?" + data);
xhr.send();
}
function loadHanlder(e) {
var xhr = e.currentTarget;
xhr.removeEventListener("load", loadHanlder);
var type = xhr.responseURL.trim().split("?")[0];
if (type.slice(-1) === "/") type = type.slice(0, -1);
type = type.split("/").pop();
var o = JSON.parse(xhr.response);
Plist = o.provinceList
citiesId = o.citiesList
countiesID = o.countiesList
createList(Plist);
}
function createList(data) {
var select1 = document.querySelector("#province");
var frg = document.createDocumentFragment()
for (var i = 0; i < data.length; i++) {
var option = document.createElement('option')
option.textContent = data[i].provinceName
frg.appendChild(option)
}
select1.appendChild(frg)
select1.addEventListener("change", changeHandler);
console.log(data[0].cities)
for (let i = 0; i < data[0].cities.length; i++) {
citiesId.forEach(item => {
if (item.id === data[0