add_element 添加元素

add_element(name string, pid_name string, text string, class_name string, style string,mode string);

输入参数

  • name 元素名 div input a h p 具体可查看html 标准
  • pid_name 上级id
  • text 内容文本
  • class_name class样式名称
  • style 自定义样式属性
  • mode 模式

输出参数

例子

// 如添加元素
let style = "position: absolute; top: 50px;left: 220px;z-index: 2;";
add_element("h2","yun_main","我是标题","",style,"Run");
作者:力博特  创建时间:2025-12-11 19:04
最后编辑:力博特  更新时间:2026-01-13 17:31