You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let mailContent = this.$refs.mailContent.$el;
let articleContent =
mailContent.getElementsByClassName("articleContent")[0];
console.log("-----articleContent-----", articleContent);
const html2md = require('html-to-md')
let md = html2md(articleContent, {ignoreTags:[],}, false);
报错
TypeError: t.replace is not a function
at e.default (index.js?5145:1:1)
at e.default (index.js?5145:1:1)
at _callee$ (index.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/string-replace-loader/index.js?!./pages/mailAssistant/index.vue?vue&type=script&lang=js&:127:22)
at tryCatch (polyfill.min.js:1:93205)
at Generator.invoke [as _invoke] (polyfill.min.js:1:92979)
at t.<computed> [as next] (polyfill.min.js:1:93737)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3:1)
at _next (asyncToGenerator.js?1da1:25:1)
at eval (asyncToGenerator.js?1da1:32:1)
at new Promise (<anonymous>)
The text was updated successfully, but these errors were encountered:
作者你好,这是我使用
html-to-md
产生的错误:代码
报错
The text was updated successfully, but these errors were encountered: