用jquery添加html

pei*_*rix 2 jquery

是否有一个简洁的方法来添加jQuery而不是

$("#elm").html($("#elm").html() + "some text");
Run Code Online (Sandbox Code Playgroud)

只做$("#elm").html(+= "some text")或类似的事情真是太好了......

Aar*_*ell 6

$('#elm').append('some text');
Run Code Online (Sandbox Code Playgroud)

http://docs.jquery.com/Manipulation/append有关使用append的更多信息