<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <mce:script language="JavaScript"><!-- function chkHash() { var hash = location.hash; hash = hash.replace('#',''); if (hash != '' && hash != null && typeof(hash) != 'undefined') { alert(hash); if (document.getElementById(hash)) { alert(hash); document.getElementById(hash).style.display = 'inline'; } } } // --></mce:script> </head> <body onload="chkHash();"> <div >a1</div> <div >a2</div> <div >a3</div> <div >a4</div> <div >a5</div> </body> </html> 调用: url#a1 url#a2 url#a3 相关文章: 2022-12-23 2022-12-23 2021-08-29 2022-12-23 2022-12-23 2021-04-23 2022-12-23 2022-12-23