Home >Web Front-end >JS Tutorial >Jquery changes the page title title and other JS failure solutions_jquery

Jquery changes the page title title and other JS failure solutions_jquery

WBOY
WBOYOriginal
2016-05-16 16:32:291495browse

Jquery code

Copy code The code is as follows:

$("title").html("hello");

Later, I had to use the following js code to achieve it

Js code

Copy code The code is as follows:

document.title="hello";
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn