We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063c322 commit 22e9083Copy full SHA for 22e9083
Der.js
@@ -61,7 +61,6 @@ Der.getByClass = function(cssName, nodeRefer) {
61
* cssName:样式名,
62
* nodeRefer:参照节点[可选]
63
*/
64
-
65
if (typeof document.getElementsByClassName === "function") { //判断是否原生支持getElementsByClassName
66
nodeRefer = (nodeRefer) ? nodeRefer : document; //无参照节点则设参照节点为document
67
return Array.prototype.slice.call(nodeRefer.getElementsByClassName(cssName)); //返回转化为数组的节点集合
0 commit comments