object(mysqli_result)#13 (5) { ["current_field"]=> int(0) ["field_count"]=> int(25) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } jquery append() - 程序員論壇 - Powered by Discuz!

程序員論壇

標題: jquery append() [打印本頁]

作者: Redcup    時間: 2020-11-2 02:18
標題: jquery append()
將參數指定的內容插入到匹配元素集中每個元素的末尾。
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
  1. var $newdiv1 = $( "<div id='object1'></div>" ),
  2.   newdiv2 = document.createElement( "div" ),
  3.   existingdiv1 = document.getElementById( "foo" );

  4. $( "body" ).append( $newdiv1, [ newdiv2, existingdiv1 ] );
複製代碼
  1. $( ".container" ).append( $( "h2" ) );
複製代碼





歡迎光臨 程序員論壇 (http://program.thesmartfire.com/) Powered by Discuz! X2.5