html-microscripts:在要执行的 html 文件中创建小脚本(microscripts)

时间:2021-07-04 12:08:40
【文件属性】:
文件名称:html-microscripts:在要执行的 html 文件中创建小脚本(microscripts)
文件大小:2KB
文件格式:ZIP
更新时间:2021-07-04 12:08:40
JavaScript 首先在 HTML 文档头部的元标记中定义 microscript 语法并包含 microscripts.js 文件。 < head > ... < meta name =" microscript-syntax " content =" {{*}} " > < script src =" microscripts.js " > </ script > ... </ head > 那就开始使用吧! < body > PI * 2 = {{Math.PI * 2}} </ body > body 的结果应该类似于PI * 2 = 6.283185307179586
【文件预览】:
html-microscripts-master
----test.html(347B)
----README.md(408B)
----microscripts.js(2KB)

网友评论