javascript find key from value

최신 브라우즈에서 value로  key 찾기 .

var key = Object.keys(obj).filter(function(key) {return obj[key] === value})[0];

[jQuery] 특정 요소에 포커스 주고 빼기 feat. focus() and blur() – 모두의매뉴얼 (triki.net)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *