Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在jquery捕获后执行href_Jquery_Function_Href - Fatal编程技术网

在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 
});