摘要: FROM : http://tech.pixnet.us/blog/post/31376360javascript 的 location 有兩種跳頁的方法。location.assign(url);location.replace(url);其中 location.assign(url); 跟 location = url; 或是 location.href = url; 功用是一樣的。那麼 assign 和 replace 有什麼差別呢?我在 pagea.html 跑了 assign('pageb.html'); 的話,在 pageb 按 browser 的上一頁,會回到 p 阅读全文
posted @ 2011-11-30 16:04 Athrun 阅读(377) 评论(0) 推荐(0) 编辑