为什么出错
funtion(text, size, l, h){
let b1 = document.createElement("div"), b2 = document.createElement("div");
b1.setAttribute("class", "button1");
b2.setAttribute("class", "button2");
let agent = document.createElement("div");
agent.setAttribute("class", "agent");
agent.setAttribute("style", `position:relative;top:${h}px;`);
let txt = document.createElement("span");
txt.setAttribute("class", "txt");
txt.setAttribute("style", "position:absolute;top:30px;");
ui.setSize(agent, size, 2, 1);
agent.style.backgroundColor = "grey";
agent.style.left = l;
txt.innerHTML = text;
var x = l +(size / 2);
b1.setAttribute("style", `position:absolute;`);
b2.setAttribute("style", `position:absolute;`);
b1.style.left = '-1px';
b2.style.left = `${size / 2 + 1}px`;
b1.style.top = `${size / 2}px`;
b2.style.top = `${size / 2}px`;
var os = size / 2;
ui.setSize(b1, os, 2, 1);
ui.setSize(b2, os, 2, 1);
b1.style.backgroundColor = "#555";
b2.style.backgroundColor = "#555";
}