最終更新: triplexsys 2010年08月05日(木) 21:34:08履歴
- #(ハッシュ)対応にしてみました
- JavaScript
function linkWithTimestamp(uri) { if ((hashLocation = uri.indexOf('#')) != -1) { hash = uri.substring(hashLocation); uri = uri.substring(0, hashLocation); } else { hash = ''; } if (uri.indexOf('?') != -1) { location.href = uri + '&t=' + getTimestamp() + hash; } else { location.href = uri + '?t=' + getTimestamp() + hash; } } function getTimestamp() { return new Date/1000|0; }
このページへのコメント
fkMYeg Im obliged for the post.Much thanks again. Keep writing.