锘縱ar str = location.href; var num = str.indexOf("#open"); if (num > 0) { str = str.substr(num + 5); location.href = str + ".shtml"; }