jqueryの知識がありません。以下のコードが何をするかを教えてくれる人がいますか?私はそれをグーグルで検索しましたが、結果は見つかりませんでした。クラスが「p-notification」の div 内に HTML コンテンツを追加したいと考えています。これを行う方法?
this.notification = $('<div/>', {
'class': 'p-notification'
});
this.content = $('<div/>', {
'class': $elem.attr("hasFooter") === "true" ? 'p-content with-p-footer' : 'well',
'style': $elem.attr("paddless") === "true" ? 'padding:0;' : '',
'text': 'Loading'
});