【文件属性】:
文件名称:tinydom:TinyGo兼容的DOM操作库。 用于WASM
文件大小:1.94MB
文件格式:ZIP
更新时间:2021-03-06 16:01:40
go dom wasm tinygo Go
TinyDom
TinyGo兼容的DOM操作库。 用于WASM
这个库很大程度上是基于。 它已更改为可在项目中使用。
TinyDom几乎包装了syscall/js所有功能。
TimyDom还为html元素提供了一些包装,如下所示:
形式
输入
标签
输出
场集
视频
用法示例
package main
import (
package main
import (
"github.com/Nerzal/tinydom"
"github.com/Nerzal/tinydom/elements/form"
"github.com/Nerzal/tinydom/elements/input"
)
func main () {
document := tinydom . GetDocument ()
body := document . GetElementById ( "bod
【文件预览】:
tinydom-main
----.gitignore(278B)
----Makefile(314B)
----document.go(866B)
----LICENSE(11KB)
----event.go(553B)
----xmlhttprequest.go(1KB)
----css.go(25KB)
----targets.go(204B)
----README.md(2KB)
----xslt.go(554B)
----navigator.go(232B)
----example()
--------html()
--------video.mp4(968KB)
--------wasm.js(608B)
--------wasm.go(2KB)
--------index.html(338B)
--------wasm_exec.js(22KB)
--------wasm-server()
----storage.go(731B)
----window.go(1KB)
----element.go(5KB)
----tokenlist.go(429B)
----location.go(657B)
----history.go(519B)
----elements()
--------media()
--------form()
--------label()
--------href()
--------input()