
[英]Why is my JS Ternary ignoring the conditional argument where the affirmative should execute a map.set(k,v) function?
目标是将 map data-属性从一个元素传递到另一个元素,但同时忽略某些属性,例如class 、 id等。 这是一个块: let ignoreList = ['class', 'id', 'name', 'value', 'type', 'src']; $(".some-class ...