##获取a标签的src属性
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title></head><body><a href="" src="1111" onclick="myFun(this)">a标签</a><script src="/jquery/1.12.4/jquery.min.js"></script><script>function myFun(e) {debugger;console.log('qqqq');console.log("+++",e.src)var target=$(e).attr('src');console.log(target);} </script></body></html>