<a href="#" demo="1"> var xh=this.attributes['xh'].value; var demo=this.attributes['demo'].nodeValue;//貌似不推荐使用