Nov*_*ero -1 javascript append html-lists
我将如何将以下代码附加一次:
$('.faq_info').append(
'<ul>' +
'<li>Highlighted code for double html, body, and head tags means its invalid.</li>' +
'<li>Check highlighted iframe tags if it effects link placement.</li>' +
'<li>Highlighted charset means its not UTF8 or it is a bad charset.</li>' +
'<li>Highlighted symbols means that they are effecting the link.</li>' +
'<li>Check highlighted comments if it effects the link placement.</li>' +
'<li>If client url is highlighted it means something else in the source is causing it to be invalid.</li>' +
'<li>Check to see if client url is in the source code.</li>' +
'</ul>'
);
Run Code Online (Sandbox Code Playgroud)
我只是做了以下 $('div.faq_info').empty().append('whatever string'); 它有效。它基本上清空 div 中的任何内容并在其后追加。
| 归档时间: |
|
| 查看次数: |
4222 次 |
| 最近记录: |