jQuery的。在元素“ script”或“ noscript”或“ iframe”内/下查找所有具有属性键为“ src或href”的属性值

用户名

我希望能够在元素('script','noscript','iframe')下找到所有具有src或href属性键的属性值。

瓦伦丁·梅西耶(Valentin Mercier)

试试这个:

$("iframe[src], script[src]").each(function() {
console.log($(this).attr('src'));
});

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档