Замена Ajax вместо добавляет

Типы MIME Office 2007 для IIS

  • .docm, application/vnd.ms-word.document.macroEnabled.12
  • .docx, application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • .dotm, application/vnd.ms-word.template.macroEnabled.12
  • .dotx, application/vnd.openxmlformats-officedocument.wordprocessingml.template
  • .potm, application/vnd.ms-powerpoint.template.macroEnabled.12
  • .potx, application/vnd.openxmlformats-officedocument.presentationml.template
  • .ppam, application/vnd.ms-powerpoint.addin.macroEnabled.12
  • .ppsm, application/vnd.ms-powerpoint.slideshow.macroEnabled.12
  • .ppsx, application/vnd.openxmlformats-officedocument.presentationml.slideshow
  • .pptm, application/vnd.ms-powerpoint.presentation.macroEnabled.12
  • .pptx, application/vnd.openxmlformats-officedocument.presentationml.presentation
  • .xlam, application/vnd.ms-excel.addin.macroEnabled.12
  • .xlsb, application/vnd.ms-excel.sheet.binary.macroEnabled.12
  • .xlsm, application/vnd.ms-excel.sheet.macroEnabled.12
  • .xlsx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • .xltm, application/vnd.ms-excel.template.macroEnabled.12
  • .xltx, application/vnd.openxmlformats-officedocument.spreadsheetml.template

65
задан shaiss 4 November 2009 в 17:02
поделиться

2 ответа

, вы можете очистить элемент перед добавлением

$("#results").empty().append(myHtml);

или использовать html method

$("#results").html(myHtml)
136
ответ дан 24 November 2019 в 15:17
поделиться

Просто измените

$('#results').append(myHtml);

на

$('#results').html(myHtml);
25
ответ дан 24 November 2019 в 15:17
поделиться
Другие вопросы по тегам:

Похожие вопросы: