Home > Web Front-end > JS Tutorial > body text

Syntax issues with selectors after Jquery upgrades to new version_jquery

WBOY
Release: 2016-05-16 18:25:48
Original
896 people have browsed it

After checking the TomBox.js code used in it, I couldn’t figure out the reason

Later, the manager reminded me that it may be a selector syntax problem after the Juqery upgrade

The problem may be in chapter 73 Line


Copy code The code is as follows:

TB_TempArray = $(" @a[@rel=" imageGroup "]").get(); Later I checked on the Internet


and changed the code to

Copy code The code is as follows:

TB_TempArray = $("a[@rel=" imageGroup "]").get() ;


It will be normal after removing the "@" symbol.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template