在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Kotlin/kotlinx.html开源软件地址(OpenSource Url):https://github.com/Kotlin/kotlinx.html开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):kotlinx.htmlA kotlinx.html library provides DSL to build HTML to Writer/Appendable or DOM. Available to all Kotlin Multiplatform targets and browser(or other JavaScript engine) for better Kotlin programming for Web. Get startedSee Getting started page for details how to include the library. DOMYou can build DOM tree with JVM and JS naturally See example for JavaScript-targeted Kotlin window.setInterval({
val myDiv = document.create.div("panel") {
p {
+"Here is "
a("https://kotlinlang.org") { +"official Kotlin site" }
}
}
document.getElementById("container")!!.appendChild(myDiv)
document.getElementById("container")!!.append {
div {
+"added it"
}
}
}, 1000L) StreamYou can build HTML directly to Writer (JVM) or Appendable (Multiplatform) System.out.appendHTML().html {
body {
div {
a("https://kotlinlang.org") {
target = ATarget.blank
+"Main site"
}
}
}
} DocumentationSee wiki pages BuildingSee development page for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论