jquery 检测某个页面元素是否含有某属性的方法 作者: 小任班长 时间: 2015-12-28 03:14 分类: js 评论 检测某元素是否含有某属性if(typeof($("#aid").attr("rel"))=="undefined") 如果==undefined则代表没有这个属性!