gpt4 book ai didi

jquery 相当于原型(prototype)中的 list.detect

转载 作者:行者123 更新时间:2023-12-01 03:57:20 24 4
gpt4 key购买 nike

原型(prototype)中 list.detect 的 jquery 等价物是什么?

最佳答案

返回第一个包含“value”的元素的索引:

jQuery.inArray(value, array);

关于jquery 相当于原型(prototype)中的 list.detect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/395262/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com