锚记的两种模式

锚记的两种方式

<a name="maoji">&nbsp;</a>   锚记住位置

1.JS

 window.location.hash="maoji";

2.HTML

<a href="#maoji" /></a>