0
그래서 모바일 웹 사이트의 jQuery를 1.7.3에서 1.8 그러나이 작업을 수행 할 때 콘솔 오류가 발생합니다 :업그레이드 jQuery 1.7.3에서 1.8.0+로 업그레이드 구문 오류 [data-role] = page] (jQuery Mobile과 함께 사용)
[Error] Error: Syntax error, unrecognized expression: [data-role]=page error (jquery-1.8.0.js, line 4512)
tokenize (jquery-1.8.0.js, line 4785)
compile (jquery-1.8.0.js, line 4883)
select (jquery-1.8.0.js, line 4973)
select (jquery-1.8.0.js, line 5083)
Sizzle (jquery-1.8.0.js, line 3912)
find (jquery.mobile-1.3.2.js, line 348)
matchesSelector (jquery.mobile-1.3.2.js, line 358)
filter (jquery-1.8.0.js, line 5371)
is (jquery-1.8.0.js, line 5218)
dispatch (jquery-1.8.0.js, line 3027)
eventHandle (jquery-1.8.0.js, line 2677)
trigger (jquery-1.8.0.js, line 2941)
(anonymous function) (jquery-1.8.0.js, line 3607)
each (jquery-1.8.0.js, line 611)
each (jquery-1.8.0.js, line 241)
trigger (jquery-1.8.0.js, line 3606)
_trigger (jquery.mobile-1.3.2.js, line 835)
(anonymous function) (jquery.mobile-1.3.2.js, line 4065)
fire (jquery-1.8.0.js, line 973)
add (jquery-1.8.0.js, line 1016)
transitionPages (jquery.mobile-1.3.2.js, line 4058)
changePage (jquery.mobile-1.3.2.js, line 4708)
initializePage (jquery.mobile-1.3.2.js, line 11158)
(anonymous function) (jquery.mobile-1.3.2.js, line 11192)
fire (jquery-1.8.0.js, line 973)
fireWith (jquery-1.8.0.js, line 1080)
ready (jquery-1.8.0.js, line 406)
DOMContentLoaded (jquery-1.8.0.js, line 83)
이 오류의 결과는 아무 것도 할 수 없다는 것입니다. 페이지를 전환 할 수없고 iScroll도 작동하지 않습니다.
jQuery 라이브러리 이외의 다른 부분에 대한 오류 참조가 표시되지 않으므로 어디에서 오류가 발생할 수 있는지 알 수 없으므로 여기에 넣을 코드를 실제로 알지 못합니다. 내가 작성한 코드가 아닙니다. 건배 :
이 도움이 (가 바보였다) 나는이 부분을 작성하지 않은, 감사 그래서 나는 그것을 고맙게 생각한다 : D. – Tyranwyn