/html2vNode

html2vNode

Primary LanguageJavaScriptMIT LicenseMIT

html2vNode

View

alt

Install

with cdn

<script src="https://cdn.jsdelivr.net/npm/html2vnode@1.0.2/dist/html2vnode.esm.js"></script>

with npm

When i have fucking time to fucking write

Use it

var body = document.body;
var tree = new vTree(body);

APIS

vNode Prototypes

Field type default
getTagName function() -> tagName -
setProps funtion({ k: v }) -> void -
stanardStyle funtion() -> void -
setPropsStyle funtion({ k: v }) -> void -
setText funtion(str) -> void -
render funtion() -> DOM -

vTree Prototypes

ps: vTree follow functor rules

Field type default
getVTree function() -> vTree -

License

MIT.1839333350@qq.com