create_element 创建元素

create_element(name string, pid_name string, cid_name string, class_name string, style string,mode string);

输入参数

  • name 元素名 div input a h p 具体可查看html 标准
  • pid_name 上级id
  • id_name 元素id
  • class_name class样式名称
  • style 自定义样式属性
  • mode 模式 Run 、以及其他自定义模式 、如大屏1 大屏2

输出参数

例子

// 如创建图表画布
let style = "position: absolute; top: 50px;left: 220px;z-index: 2;";
create_element("div","yun_main","chart1","",style,"Run");
作者:力博特  创建时间:2025-12-08 17:12
最后编辑:力博特  更新时间:2026-01-13 17:31