- 註冊時間
- 2013-4-24
- 最後登錄
- 2020-11-24
- 閱讀權限
- 100
- 積分
- 160
- 精華
- 0
- 帖子
- 22
![Rank: 7](static/image/common/star_level3.gif) ![Rank: 7](static/image/common/star_level2.gif) ![Rank: 7](static/image/common/star_level1.gif)
|
將參數指定的內容插入到匹配元素集中每個元素的末尾。
Insert content, specified by the parameter, to the end of each element in the set of matched elements.- var $newdiv1 = $( "<div id='object1'></div>" ),
- newdiv2 = document.createElement( "div" ),
- existingdiv1 = document.getElementById( "foo" );
-
- $( "body" ).append( $newdiv1, [ newdiv2, existingdiv1 ] );
複製代碼- $( ".container" ).append( $( "h2" ) );
複製代碼 |
|