[英]What does javascript document.createElement('bootstrap') do? There's no such DOM element type as 'bootstrap'!
I'm trying to understand, how bootstrap transitions work. 我试图了解引导过渡的工作方式。
In the beginning of transition.js
module I found a statement, which I can't understand: 在
transition.js
模块的开头,我找到了一条语句,我无法理解:
var el = document.createElement('bootstrap')
How this is supposed to work? 这应该如何工作? There's no
bootstrap
element in DOM, I believe. 我相信DOM中没有
bootstrap
元素。
您可以在html5中使用任何名称作为元素,而旧的浏览器只会将它们视为div
,因此称为bootstrap
并没有什么特别的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.