var global_units=new Map(); //装载单个uit function load_unit(matche){ let unit_src=matche.getAttribute("alp-unit"); if (global_units.has(unit_src)) { matche.innerHTML=global_units.get(unit_src); }else{ var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { var text = xhr.responseText.split("