4

次のコードに相当するprototype.jsとは何ですか

jQuery('#txtId').after(divdata);
4

3 に答える 3

7

http://www.prototypejs.org/api/element/insert

よくあなたは挿入を使用します上のリンクを見てください

 $('selector').insert ({'after': 'Content'});

あなたの場合、それはこのようになります

$('#txtId').insert ({'after':divdata});
于 2010-12-07T07:28:00.597 に答える
0

これを探しています、

new Insertion.After('id of element', "HTML");

Ref

于 2010-12-07T07:27:52.887 に答える
0

この作品は死にますか?jqueryにafterのようなショートカットがあるとは思いません。

$(selector).each(function(){
   appendChild(document.createTextNode("Text or html to insert"));
 });
于 2010-12-07T07:28:43.443 に答える