Does the vue3 project need this section? import DOMParser from 'dom-parser'; // Add dependency DOMParser

ask:

Does the vue3 project need this section? import DOMParser from 'dom-parser'; // Add dependency DOMParser

answer:

If you need to use it in Vue 3 DOMParser, you don't need to add additional dependencies, because DOMParserit is a standard JavaScript API and is already built into the browser. Therefore, you only need to use the object directly in the component DOMParserwithout the need to install or import any additional libraries.

Guess you like

Origin blog.csdn.net/kuang_nu/article/details/130972976