js获取自定义属性,报错 Uncaught TypeError: element.attr is not a function

NoSuchKey