Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/425.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript UI引导-缺少包含的实现_Javascript_Jquery_Angularjs_Twitter Bootstrap_Angular Ui Bootstrap - Fatal编程技术网

Javascript UI引导-缺少包含的实现

Javascript UI引导-缺少包含的实现,javascript,jquery,angularjs,twitter-bootstrap,angular-ui-bootstrap,Javascript,Jquery,Angularjs,Twitter Bootstrap,Angular Ui Bootstrap,jqLite怎么可能不在元素()上提供方法“contains”,angular bootstrap也不提供它(),angular bootstrap不依赖于jQuery(),然而angular bootstrap正在使用它()?它是从哪里来的?我试着解释一下: $element是一个HTMLElement浏览器html对象,它被包装在JQuery/JQlite对象中 调用$element[0]时,首先会得到实际的HTMLElement,该元素被包装(在这种情况下,作者知道只有一个元素被包装) H

jqLite怎么可能不在元素()上提供方法“contains”,angular bootstrap也不提供它(),angular bootstrap不依赖于jQuery(),然而angular bootstrap正在使用它()?它是从哪里来的?

我试着解释一下:

$element
是一个
HTMLElement
浏览器html对象,它被包装在JQuery/JQlite对象中

调用
$element[0]
时,首先会得到实际的
HTMLElement
,该元素被包装(在这种情况下,作者知道只有一个元素被包装)

HTMLElement
继承自
节点
节点
对象具有
包含(…)
方法

参考:

HTMLElement:


节点:

可能的答案太多,或者对于这种格式,好的答案太长。请添加详细信息以缩小答案集或隔离可以在几个段落中回答的问题。此
contains()
方法不是jQuery的一部分。这是该计划的一部分