Triplex Systemsの開発メモです。開発の手順・開発に関するTipsをまとめます。

何ということはありませんが・・・

  • #(ハッシュ)対応にしてみました
  • 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.

0
Posted by seo thing 2013年12月21日(土) 01:52:18 返信

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

管理人/副管理人のみ編集できます