用jquery标记?
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何 使用jQuery附加到最后一个标签的末尾?例如,我的 html 将是这样的:
<div> <p>line1</p> <p>line2</p> </div>
我希望最终结果是:
<div> <p>line1</p> <p>line2 </p> </div>
像这样:
$("div p:last").append(" ");
看这里:
http://jsfiddle.net/d8AGr/