Prototype – $A() 方法

返回到:Prototype – 实用方法

$A() 函数将它接收到的单个参数转换为 Array 对象。

一种建议的用途是将 DOM 节点列表转换为常规数组,这样可以更有效地遍历。

语法

$A(iterable)

返回值

数组形式的元素列表。

例子

HTML

返回到:Prototype – 实用方法

阅读剩余 43%

作者:terry,如若转载,请注明出处:https://www.web176.com/prototype_api/8954.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2023年2月7日 下午2:11
下一篇 2023年2月7日 下午2:13

相关推荐

发表回复

登录后才能评论