jq cycle timer dynamic switching Website title

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.
This link: https://blog.csdn.net/qq_41399976/article/details/102609495
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.

Guess you like

Origin blog.csdn.net/qq_41399976/article/details/102609495