-1
함수의 제목에 알림 번호를 추가하려하지만 작동하지 않습니다.문서 제목 변경이 작동하지 않습니다.
var docTitle = document.title;
document.title = "".docTitle." (".$(".loadnot").html().")";
함수의 제목에 알림 번호를 추가하려하지만 작동하지 않습니다.문서 제목 변경이 작동하지 않습니다.
var docTitle = document.title;
document.title = "".docTitle." (".$(".loadnot").html().")";
자바 스크립트에서 당신이하지 .
을 연결하기위한 +
를 사용한다 : 이것은 내 코드입니다.
document.title = docTitle + "(" + $(".loadnot").html() + ")";
또는 더 나은 : 물론
document.title += " ("+$(".loadnot").html()+")";
, 내가 잊을 수 방법에 대해 설명합니다. 감사! – imp