假设我有3页。文件夹“ pages”中的“ index.html”,“ page1.html”和“ others”中的“ page2.html”。所以:
Table [0] [0] = 1
Table [0] [1] = 2
Table [0] [2] = 3
Table [1] [0] = 4
Table [1] [1] = 5
Table [1] [2] = 6
Table [2] [0] = 7
Table [2] [1] = 8
Table [2] [2] = 9
Table [3] [0] = 10
Table [3] [1] = 11
Table [3] [2] = 12
Enter values for two sides: 6 7
9.22
Enter values for two sides: 2 3
3.61
Enter values for two sides: 3 4
5.00
./index.html
./pages/page1.html
要从index.html链接到page1.html,我必须写:
./others/page2.html
但是要从page2.html链接到page1.html,我必须写:
href="./pages/page1.html"
随着页面的增加,对每个页面的管理导航栏将变得真正 痛苦。有什么办法可以解决本地计算机和在线托管的这种情况?当我做一些研究时,我发现解决方案可能是“ root path”,但不适用于我的本地计算机。