xyl66 / vuePlugs_printjs

vue打印插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isDOM方法不存在

zhujia1109 opened this issue · comments

Error in event handler for "click": "TypeError: this.isDOM is not a function"

found in

--->

at src/pages/form/engineeringEvent/read.vue
at src/App.vue

commented

[Vue warn]: Error in event handler for "click": "TypeError: this.isDom is not a function"

commented

doPrintVue () {
var newstr = document.getElementsByClassName('printOrder-data')[0].innerHTML
document.body.innerHTML = newstr
window.print()
// 重新加载页面,以刷新数据
window.location.reload()
}
参考:
https://segmentfault.com/q/1010000011527757
https://codepen.io/joseluisq/pen/VzRpGb

TypeError: this.isDOM is not a function
at new Print (print.js?7fde:13)
现在我也是遇到了这个问题....求大神支招呀.....

同问