(function(window, $, PhotoSwipe){ $(document).ready(function(){
                                  alert("start")
$('div.gallery-page') .live('pageshow', function(e){
                                          alert(“aa”)
var  currentPage = $(e.target), options = {}, photoSwipeInstance = $("ul.gallery a", e.target).photoSwipe(options,  currentPage.attr('id')); return true; }) .live('pagehide', function(e){ var  currentPage = $(e.target), photoSwipeInstance = PhotoSwipe.getInstance(currentPage.attr('id')); if (typeof photoSwipeInstance != "undefined" && photoSwipeInstance != null) { PhotoSwipe.detatch(photoSwipeInstance); } return true; }); }); }(window, window.jQuery, window.Code.PhotoSwipe)); </script>
为什么 从 a.jsp跳转到b.jsp 时  就只会触发 alert(start)  后面就不执行    ,,,    而直接从b.jsp跳转到b.jsp就会触发alert(start)和alert(aa)  
$('div.gallery-page').live('pageshow', function(e){
 这句话 是什么 意思 高手说下  3q!! alert( start)是页面加载就会执行,, 而$('div.gallery-page').live('pageshow', function(e){通过后才会执行alert(aa) ,,  所以有没人解释下 $('div.gallery-page').live('pageshow', function(e){ 是什么意思!!!