我有一个功能,说
function runSomething()
{
alert("hello");
}
我有window.onhashchange = runSomething;
并且在我的代码中,我打电话window.location.hash = "#processsection"
runSomething 运行,但是它在页面执行到#processsection 之前运行......我怎样才能让它只在我在#processsection 之后运行?
我有一个功能,说
function runSomething()
{
alert("hello");
}
我有window.onhashchange = runSomething;
并且在我的代码中,我打电话window.location.hash = "#processsection"
runSomething 运行,但是它在页面执行到#processsection 之前运行......我怎样才能让它只在我在#processsection 之后运行?