Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
setInterval(title_qiehuan,1000);//这里的数字的以毫秒为单位,1000就是一秒钟
function title_qiehuan(){
var title = $('title').text();
if(title == '标题一'){
$('title').text('标题二');
}else{
$('title').text('标题一');
}
}
What comment can not understand ask me, I will reply as soon as possible to see.