代码实例
function b() {
	//相对路径,跳出当前符号是(../),进入目录路径(html/a.html)
	window.location.href="../html/a.html" ;
	// 绝对路径(去掉WebRoot既可以了)/FFFFFFF/WebRoot/test1/html/test1.html
	window.location.href="/FFFFFFF/test1/html/a.html" ;
}
示意图

原文:https://www.cnblogs.com/wutao123/p/9129890.html