如何从html中删除#shadow-root(user-agent)

什么是#shadow-root(用户代理)?如何从文本框中删除它?

详细地
这是我的代码

但是当我检查它时,我看到了

最佳答案
从本质上讲,它封装了代码,使其更易于管理.如果不使您生成代码功能无法使用,那么您不一定要删除它.

以下是您正在使用的库隐藏的代码,因此您不必担心编码某些对象. Chrome允许您查看代码中#shadow Doms的位置.

  #shadow-root (user-agent)
  

从以下链接查看此说明:

“In a nutshell Shadow DOM is a new part of the HTML spec which allows
developers to encapsulate their HTML markup,CSS styles and
JavaScript. Shadow DOM,along with a few other technologies which
we’ll cover later,gives developers the ability to build their own 1st
class tags and APIs just like the or tag.
Collectively,these new tags and APIs are referred to as Web
Components.”

以下链接是帮助理解影子DOM的关键:
http://robdodson.me/blog/2013/08/26/shadow-dom-introduction/

这样可以使用shadow DOM来创建自定义标记
https://www.polymer-project.org/

最后,Chrome开发工具选项下还有一个选项“显示用户代理阴影DOM”

相关文章

vue阻止冒泡事件 阻止点击事件的执行 <div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些