My problem now is how to make browser history remember the tab selected: when user click the browser back button, it will go back to the previous tab selected, not the previous page. And the solution should not cause page refresh or add new URL parameters.
I know Facebook photo album implemented such feature.
Thanks to your suggestion, I implemented the in-page tab navigation by using Method 1.
Now the only problem left is: when users click some link on the page and leave, and then they click browser back button, page always show the first tab, not the tab they stay before they leave. I checked URL, it seems that the current tab index is remembered( the number after #) .