reUseMl:用于渲染 html 组件的简单 Javascript 库

时间:2021-07-24 05:30:47
【文件属性】:
文件名称:reUseMl:用于渲染 html 组件的简单 Javascript 库
文件大小:69KB
文件格式:ZIP
更新时间:2021-07-24 05:30:47
library component-based es5-javascript JavaScript 重用标记 您创建 html 组件并使用 reUseMl 脚本将它们呈现到您的 html 文档中 安装 简单使用 ReUSE 从 设置 创建/components目录并存储所有标记组件,对于小型项目,您可以使用<style></style>标签在 html 中设置<style></style> 用法 将reUse.js文件或缩小的reUse.min.js添加到 html 代码中,然后创建另一个 javascript 文件,在其中调用 render 方法 [removed][removed] [removed][removed] 在你的app.js ,如果你想将一个header.html组件渲染到你的容器中,ID 为#header你从 ReUseMl() 实例化重用,然后设置视图或目录,它会搜索你的组件,使用reuse.set()
【文件预览】:
reUseMl-main
----.gitignore(12B)
----package.json(265B)
----LICENSE(1KB)
----README.md(1KB)
----md_assets()
--------pic1.png(50KB)
--------components.png(15KB)
----example()
--------components()
--------js()
--------index.html(768B)
----reUse.min.js(739B)
----reUse.js(1KB)

网友评论