在jquery捕获后执行href
我不知道标题是否有意义,但代码值千言万语 以下是:在jquery捕获后执行href,jquery,function,href,Jquery,Function,Href,我不知道标题是否有意义,但代码值千言万语 以下是: a href="http://twitter.com/intent/tweet?url=http://campaignmonitor.com/blog&text=I love the Campaign Monitor blog!&via=campaignmonitor&related=yarrcat" id="tweeter">Tweet it</a> 事实上,我喜欢在jquery函数中执行href。
a href="http://twitter.com/intent/tweet?url=http://campaignmonitor.com/blog&text=I love the Campaign Monitor blog!&via=campaignmonitor&related=yarrcat" id="tweeter">Tweet it</a>
事实上,我喜欢在jquery函数中执行href。。。然后执行。。。可以是a href=“#”
问题,我如何对jquery函数说。。。。执行href 代码实际上相当于一个单词的1/78。
$('#tweeter').click(function(e){
do some var loading
and do some validation...
if validation fails then e.preventDefault()
else don't do anything as the browser will continue and redirect to the link
});
$('#tweeter').click(function(e){
do some var loading
and do some validation...
if validation fails then e.preventDefault()
else don't do anything as the browser will continue and redirect to the link
});