0
雖然通過陣列使用domConstruct.create迭代我可以做這樣的列表元素:道場domConstruct.create
domConstruct.create("li", { innerHTML: data }, ul);
或HTML鏈接是這樣的:
domConstruct.create("a", { href: "foo.html", innerHTML: "link" }, ul);
但我將如何構建包含列表和href元素的html?例如:
<li><a href="#">example1</a></li>
<li><a href="#">example2</a></li>
在此先感謝
簡單而有效。謝謝克雷格。 – shanahobo86