Jquery mobile 在函数中传递URL

Jquery mobile 在函数中传递URL,jquery-mobile,Jquery Mobile,我想在点击事件中导航到网站的页面。但我不确定如何在函数中传递链接 请建议 <div data-role="page"> <div data-role="header"> <h1>My Header</h1> </div> <div data-role="content"> <ul data-role="listview" id="first"> <li>Go Beyond 140 Ch

我想在点击事件中导航到网站的页面。但我不确定如何在函数中传递链接

请建议

<div data-role="page">
<div data-role="header">
    <h1>My Header</h1>
</div>
<div data-role="content">
<ul data-role="listview" id="first">
    <li>Go Beyond 140 Characters</li>
</ul>   
</div>
</div>

 <script>
    $("#first").bind("tap", function(e) {
      <a href ="http://www.tricksfind.in/2014/09/twitlonger-go-beyond-140-characters-in.html"></a>
});
</script>

我的头球
  • 超过140个字符
$(“#first”).bind(“tap”,函数(e){ });
可能类似于:

$("#first").bind("tap", function(e) {
  window.location.href = "http://www.tricksfind.in/2014/09/twitlonger-go-beyond-140-characters-in.html";
});
希望有帮助