Created
April 29, 2014 02:47
-
-
Save foru17/11389584 to your computer and use it in GitHub Desktop.
统计绑定页面a链接的一个兼容ajax的方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click','a',function(e){ | |
var _this = $(e.target); | |
if(_this.attr('href') != undefined && $(_this).attr('href')!='javascript:void(0);'){ | |
try{ | |
window.external.MyInvoke(); | |
} | |
catch(e){ | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment