#html #dom

glom

Rust wasm 开发工具包

1 个不稳定版本

0.1.0 2022 年 11 月 21 日

#124#dom

MIT 许可证

8KB
81

Rust wasm 开发工具包

Crates.io Rust license

常用的DOM操作 WASM前端开发-函数的形式编写

#prepend tag to the start of body
prepend_to_body(tagname:&str,options:&str,inner_html:&str)

#append tag to at the end of body
append_to_body(tagname:&str,options:&str,inner_html:&str)

#prepend tag to the start of head
prepend_to_head(tagname:&str,options:&str,inner_html:&str)

#append tag to at the end of head
append_to_head(tagname:&str,options:&str,inner_html:&str)

#append html to at the end of body
append_html_to_body(inner_html:&str)

#append html to at the end of head
append_html_to_head(inner_html:&str)

#append html to at the end of body
append_html_by_class_name(class_name:&str,inner_html:&str)

#remove element by class name
remove_element_by_class_name(class_name:&str)

# async get request
get_request(url:&str)->Result<String, reqwasm::Error>

# blocking get request
blocking_get_request(url:&str)->Result<String, reqwasm::Error>

依赖项

~7–9MB
~178K SLoC