jquery에 대한 지식이 없습니다. 아래 코드가하는 일을 어떤 몸으로 안내 할 수 있습니까? 나는 그것을 봤지만 어떤 결과도 찾지 못했습니다. div 안에 div 콘텐츠를 추가하고 싶습니다. 클래스는 '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'
});
JQuery의 사람들은 웹 사이트를 가지고 있습니다. – GolezTrol
[jquery documentation for DOM Insertion] (http://api.jquery.com/category/manipulation/dom-insertion-inside/)을 확인하는 것이 좋습니다. –
안녕하세요 Ranjan이 귀하의 문제이거나 다른 것입니다. 너의 질문은 downvoted 참조하십시오. – Jai