function printme() {

  //printMain为要打印的dom元素
  window.document.body.innerHTML = document.getElementById('printMain').innerHTML;
  window.print();
  // 还原界面
  var bdhtml = window.document.body.innerHTML;
  window.document.body.innerHTML = bdhtml;
  window.location.reload();
}

05-12 00:08