【javacript】获得点击的标签
document.getElementById('content').onclick = function(e) {
e = e || window.event;
var target = e.target || e.srcElement; //如果不是 A标签,我就退出
if(target.nodeNmae !=== 'A') { return } //打印A的链接地址
console.log(target.href) }
css loading
http://webres.wang/18-css3-loading-effect/?utm_source=tuicool&utm_medium=referral