예를 들어 파일 이름은 Hello.html입니다. html 제목을 "Hello"로 자동으로 바꾸는 방법은 무엇입니까? javascript / jquery로 가능합니까?
다음과 같이 제목을 업데이트하십시오.
document.title = (location.pathname.substring(location.pathname.lastIndexOf("/") + 1)).replace('.html','');
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다