Safari에서만 (실제로 MacBook에서 작동하는 경우)이 콘솔 오류가 조금 있습니다. jQuery.Deferred exception : 문자열이 예상 된 패턴과 일치하지 않았습니다.
function exists(element){
var exists = document.querySelector(element);
return exists;
}
다른 함수 내에서 호출 :
나는이 기능이 크롬 매력처럼 작동에
function includeHoverStylesheet(){
var path = $("body").attr("data-hover");
if (!("ontouchstart" in document.documentElement || exists("link[href='" + path + "'"))) {
var link = document.createElement("link");
link.rel = "stylesheet", link.href = path, document.head.appendChild(link) && document.body.removeAttribute("data-hover");
}
}
지금,하지만 사파리에 콘솔이 오류 던져 :
1) Invalid CSS property declaration at: *
2) jQuery.Deferred exception: The string did not match the expected pattern.
3) SyntaxError (DOM Exception 12): The string did not match the expected pattern.
을
누군가 도대체 무슨 일이 일어 났는지 생각나요 ???
미리 감사드립니다.
'()' '개구 가지고 존재로 전달 된 문자열 ['하지만'] '오류를 일으킬 정도이다. –