index.html在 d:\zzy里
test.html在d:\zzy\test里
aa.js在d:zzy\js里在index.html用location.replace('d:\zzy\test\test.html')方法转向到test.html后
test.html中要将js的引入路径设为
<script language="javascript" src="../../js//aa.js"></script>才能有效<script language="javascript" src="../js//aa.js"></script>却无效啊为什么啊 按理说 应该第二个是对的啊 现在反而不行 请大家给说个里

解决方案 »

  1.   

    The replace( ) method of the Location object loads and displays a new document. Loading a document in this way is different from simply setting location or location.HRef in one important respect: the replace( ) method does not generate a new entry in the History object. When you use replace( ), the new URL overwrites the current entry in the History object. After calling replace( ), the browser's Back button does not return you to the previous URL; it returns you to the URL before that one.FROM:JavaScript The Definitive Guide, 5th Edition.chm
      

  2.   

    what's the mean can you speak chinese
      

  3.   

    对于window 2003 跟 xp的IIS路径是有区别的应该以网络服务器为准.