ajaxで変更したい箇所のみを差し替えたのち、タイトルも変更
CoffeeScript
$("#contents").load("hoge.html #contents", (data) =>
scr = /<title>(.*)<\/title>/;
document.title = scr.exec(e)[1];
);
Go to list of users who liked
More than 5 years have passed since last update.
ajaxで変更したい箇所のみを差し替えたのち、タイトルも変更
$("#contents").load("hoge.html #contents", (data) =>
scr = /<title>(.*)<\/title>/;
document.title = scr.exec(e)[1];
);
Register as a new user and use Qiita more conveniently
Go to list of users who liked