所以我有一些创建元素的变量:
var dest = $("<div/>", {
className: "something"});
var desul = $("<ul/>", {
className: "list"});
var desLi = $("<li/>", {
className: "list-item"});
var desa = $("<a/>", {
href: "",
className: "some-link",
content: "Some Link"});
现在我做一个追加:
$("#target").append(???);
我最终想要的是:
<div id="target">
<div class="something">
<ul class="list">
<li class="list-item">
<a href="" class="some-link">Some Link</a>
</li>
</ul>
</div>
</div>
那么如何为#target.append 编写jQuery 呢?