home wiki.fukuchiharuki.me
Menu

関連

  • jQuery

現象

jQueryでタイトルタグが書き換えられない(ただしIEのみ。)

次のどちらもエラー「unexpected call to method or property access」になる

$('title').html('ほげ');
$('title').text('もげ');

原因

不明。

対策

仕方がないのでJavaScript生のメソッドを使う。

window.document.title = 'ふが';

参考