obj.a === obj['a']は同じ、'a'の文字列を変えたいときに便利
win.history[historyType === "replace" ? "replaceState" : "pushState"](null, null, hash);